Comments (7)
@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.
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.
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.
Run these commands:
sudo npm install -g n
sudo n 4.4.4
Go to the dasher directory, cd /home/pi/projects/dasher
Run the same commands as above, but then run sudo npm install
from dasher.
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.
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.
same error message...did you resolve it?
from dasher.
Related Issues (20)
- Using Dasher with a wifi repeater? HOT 1
- Can I include a 'conditional' statement in the config.json? HOT 1
- WiFi does not work HOT 3
- Unable to install HOT 2
- script/find_button
- Error: Socket hang up HOT 1
- Dasher Crash on Execute Command HOT 1
- Unexpected token } in JSON HOT 2
- Integration failing between Dasher and Homeassistant
- Unable to install on Raspberry Pi HOT 3
- Error when triggering a "command" containing double-quotes
- ECONNRESET Error....? HOT 1
- https and HA?
- URL error HOT 3
- NPM start issues HOT 6
- Buttonpress not registered
- Problem running command with second button HOT 1
- Finder doesn't find any buttons HOT 3
- Autostart Daemon Ubuntu HOT 2
- Inter-VLAN support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dasher.