Jump to content

Can't create modules: npm not installed in version 1.0.2


Recommended Posts

Hello all,

 

I tried to create a module using the github repository https://github.com/hak5/mk7-modules

 

First, the example module doesn't seem to work: Entropy bunny couldn't find that

 

The i tried to create my Own module.

I executed the "create.sh" scripts that reported some errors :

" - sed: -i requires and argument" (two times)

then asks me if i would like to prepare the angular workspace : Yes of course

Then another error:

NPM does not appear to be installed on this system. Failed to create workspace.

When i go back to the web interface, i have the same error as the example module:  Entropy bunny couldn't find that

 

I checked the script to debug this NPM issue.

I found the line 87 and 92: "if ! command -v npm; echo...error" and "npm install"

i searched for npm i(node package manager) but nothing is installed on my pineapple 1.0.2

i tried to find the package on openwrt repositories but nothing there either https://downloads.openwrt.org/releases/19.07.3/packages/mips_24kc/packages/

can't install it using opkg

 

Tthe Pineapple was reset to factory default too

Any solution?

 

 

Thanks in advance for your help

 

Link to comment
Share on other sites

On 3/1/2021 at 11:15 AM, dino213dz said:

Hello all,

 

I tried to create a module using the github repository https://github.com/hak5/mk7-modules

 

First, the example module doesn't seem to work: Entropy bunny couldn't find that

 

The i tried to create my Own module.

I executed the "create.sh" scripts that reported some errors :

" - sed: -i requires and argument" (two times)

then asks me if i would like to prepare the angular workspace : Yes of course

Then another error:

NPM does not appear to be installed on this system. Failed to create workspace.

When i go back to the web interface, i have the same error as the example module:  Entropy bunny couldn't find that

 

I checked the script to debug this NPM issue.

I found the line 87 and 92: "if ! command -v npm; echo...error" and "npm install"

i searched for npm i(node package manager) but nothing is installed on my pineapple 1.0.2

i tried to find the package on openwrt repositories but nothing there either https://downloads.openwrt.org/releases/19.07.3/packages/mips_24kc/packages/

can't install it using opkg

 

Tthe Pineapple was reset to factory default too

Any solution?

 

 

Thanks in advance for your help

 

Did you install the dependencies...

CREATING A MODULE

To start, make sure that you have python3, nodeJS and npm installed to your system. Then, fork the WiFi Pineapple Mark VII Modules git repository. Inside this repository, each module has it's own folder which contains the source-code for the front-end and back-end.

The repository also contains a script called create.sh, which will guide you through module generation.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...