Install error

I try to intall blynk-library and met below error.
Please help :slight_smile:

gyp WARN EACCES user ā€œrootā€ does not have permission to access the dev dir ā€œ/root/.node-gyp/0.12.6ā€
gyp WARN EACCES attempting to reinstall using temporary dev dir ā€œ/usr/local/lib/node_modules/blynk-library/node_modules/usb/.node-gypā€
make: Entering directory ā€˜/usr/local/lib/node_modules/blynk-library/node_modules/usb/buildā€™
make: *** No rule to make target ā€˜ā€¦/.node-gyp/0.12.6/common.gypiā€™, needed by ā€˜Makefileā€™. Stop.
make: Leaving directory ā€˜/usr/local/lib/node_modules/blynk-library/node_modules/usb/buildā€™
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 4.1.19-v7+
gyp ERR! command ā€œ/usr/local/bin/nodeā€ ā€œ/usr/local/lib/node_modules/node-gyp/bin/node-gyp.jsā€ ā€œbuildā€ ā€œā€“fallback-to-buildā€ ā€œā€“module=/usr/local/lib/node_modules/blynk-library/node_modules/usb/src/binding/usb_bindings.nodeā€ ā€œā€“module_name=usb_bindingsā€ ā€œā€“module_path=/usr/local/lib/node_modules/blynk-library/node_modules/usb/src/bindingā€
gyp ERR! cwd /usr/local/lib/node_modules/blynk-library/node_modules/usb
gyp ERR! node -v v0.12.6
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ā€˜/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/blynk-library/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/usr/local/lib/node_modules/blynk-library/node_modules/usb/src/bindingā€™ (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/blynk-library/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1015:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
node-pre-gyp ERR! System Linux 4.1.19-v7+
node-pre-gyp ERR! command ā€œnodeā€ ā€œ/usr/local/lib/node_modules/blynk-library/node_modules/usb/node_modules/.bin/node-pre-gypā€ ā€œinstallā€ ā€œā€“fallback-to-buildā€
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/blynk-library/node_modules/usb
node-pre-gyp ERR! node -v v0.12.6
node-pre-gyp ERR! node-pre-gyp -v v0.6.24
node-pre-gyp ERR! not ok
Failed to execute ā€˜/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/blynk-library/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/usr/local/lib/node_modules/blynk-library/node_modules/usb/src/bindingā€™ (1)
npm WARN install:usb@1.1.2 usb@1.1.2 install: node-pre-gyp install --fallback-to-build
npm WARN install:usb@1.1.2 Exit status 1

1 Like

is this Raspberry Pi? What instructions did you use?

1 Like

I get a similar/identical terminal response when I enter

sudo npm install -g blynk-library

I have a Raspberry Pi 3 +B and run the latest NOOBS form Adafruit. After starting from scratch a second time, I updated all the other important things for a new RPi before following the instructions on instructables on how to install Node.JS and the Blynk Library and still get the same response. However, I can still do things, like link my phone to the RPi and turn stuff on/off, so it shouldnā€™t prohibit you from having a little fun @nunokid.