installation of gpio nodes error

231 views
Skip to first unread message

Prashanthi Krishnan

unread,
Jun 12, 2015, 10:34:25 AM6/12/15
to node...@googlegroups.com
hello all,
i tried to install the node-gpio and apparantly i gt the following errors.. i tried to reinstall npm n all but i donna where the error is.. help me out..

pi@raspberrypi /usr/local/lib/node_modules/
node-red $ sudo npm install
node-red-contrib-gpio
|
> seria...@1.7.4 install /usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport
> node-pre-gyp install --fallback-to-build

gyp WARN EACCES user "root" does not have permission to access the dev
dir "/root/.node-gyp/0.10.36"
gyp WARN EACCES attempting to reinstall using temporary dev dir
"/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/.node-gyp"
make: Entering directory
'/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/build'
make: *** No rule to make target '../.node-gyp/0.10.36/common.gypi',
needed by 'Makefile'.  Stop.
make: Leaving directory
'/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/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/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit
(child_process.js:820:12)
gyp ERR! System Linux 3.18.14+
gyp ERR! command "/usr/local/bin/node"
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"
"build" "--fallback-to-build"
"--module=/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/build/serialport/v1.7.4/Release/node-v11-linux-arm/serialport.node"
"--module_name=serialport"
"--module_path=/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/build/serialport/v1.7.4/Release/node-v11-linux-arm"
gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v1.0.1
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/npm/node_modules/node-gyp/bin/node-gyp.js
build --fallback-to-build
--module=/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/build/serialport/v1.7.4/Release/node-v11-linux-arm/serialport.node
--module_name=serialport
--module_path=/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/build/serialport/v1.7.4/Release/node-v11-linux-arm'
(1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous>
(/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack     at maybeClose (child_process.js:766:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit
(child_process.js:833:5)
node-pre-gyp ERR! System Linux 3.18.14+
node-pre-gyp ERR! command "node"
"/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/node_modules/.bin/node-pre-gyp"
"install" "--fallback-to-build"
node-pre-gyp ERR! cwd
/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport
node-pre-gyp ERR! node -v v0.10.36
node-pre-gyp ERR! node-pre-gyp -v v0.6.7
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node
/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
build --fallback-to-build
--module=/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/build/serialport/v1.7.4/Release/node-v11-linux-arm/serialport.node
--module_name=serialport
--module_path=/usr/local/lib/node_modules/node-red/node_modules/node-red-contrib-gpio/node_modules/serialport/build/serialport/v1.7.4/Release/node-v11-linux-arm'
(1)

npm ERR! seria...@1.7.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the seria...@1.7.4 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.18.14+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
"node-red-contrib-gpio"
npm ERR! cwd /usr/local/lib/node_modules/node-red
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

Nicholas O'Leary

unread,
Jun 12, 2015, 11:12:16 AM6/12/15
to node...@googlegroups.com

Hi,

try running the npm command with the --unsafe-perm option.

Nick


--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Prashanthi Krishnan

unread,
Jun 12, 2015, 1:13:01 PM6/12/15
to node...@googlegroups.com
thank you sir got it.. did not notice that that was the problem...
Reply all
Reply to author
Forward
0 new messages