Code Monkey home page Code Monkey logo

Comments (7)

legotheboss avatar legotheboss commented on August 27, 2024

@mgobill Your node and npm are extremely old, try updating them.

Here's how you can update npm

sudo npm install -g npm

from dasher.

tacofart avatar tacofart commented on August 27, 2024

I got the same error. i did the update and now when I try to do npm isntall within dasher I get:
pi@raspberrypi:~/dasher $ npm install
/usr/bin/env: node: No such file or directory

How do I fix this?

from dasher.

mgobill avatar mgobill commented on August 27, 2024

thanks for the replies! i think @legotheboss was right. i tried to update npm, ended up reinstalling it.

now when i run
npm install
it seems to work. afterwards though, when i run
sudo npm run start
i get
`> [email protected] start /home/pi/projects/dasher

node app.js

module.js:340
throw err;
^
Error: Cannot find module './build/Release/pcap_binding'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/pi/projects/dasher/node_modules/node-dash-button/node_modules/pcap/pcap.js:3:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

npm ERR! Linux 4.4.16-v7+
npm ERR! argv "node" "/usr/bin/npm" "run" "start"
npm ERR! node v0.10.41
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! This is most likely a problem with the dasher package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs dasher
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls dasher
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/projects/dasher/npm-debug.log`

from dasher.

legotheboss avatar legotheboss commented on August 27, 2024

@tacofart

Run these commands:

sudo npm install -g n
sudo n 4.4.4

@mgobill

Go to the dasher directory, cd /home/pi/projects/dasher
Run the same commands as above, but then run sudo npm install

from dasher.

mgobill avatar mgobill commented on August 27, 2024

weird, same thing happens. i will try the same thing on raspbian jessie and let you know how it goes. thanks for all the help!

[email protected] start /home/pi/projects/dasher
node app.js

module.js:327
throw err;
^

Error: Cannot find module './build/Release/pcap_binding'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/pi/projects/dasher/node_modules/node-dash-button/node_modules/pcap/pcap.js:3:21)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)

npm ERR! Linux 4.4.16-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v4.4.4
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! This is most likely a problem with the dasher package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs dasher
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls dasher
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/projects/dasher/npm-debug.log

from dasher.

tacofart avatar tacofart commented on August 27, 2024

@legotheboss

Ran the first command and getting this:

pi@raspberrypi:~ $ sudo npm install -g n
/usr/bin/env: node: No such file or directory
pi@raspberrypi:~ $

from dasher.

icojones avatar icojones commented on August 27, 2024

@tacofart

same error message...did you resolve it?

from dasher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.