Node-Red GrovePi+

309 views
Skip to first unread message

Andrea Marchisio

unread,
Mar 26, 2016, 2:20:02 PM3/26/16
to Node-RED
Hello,
I tried to install follow flow:

npm install node-red-grovepi-nodes

http://flows.nodered.org/node/node-red-grovepi-nodes


getting follow errors .... someone can help me?
Many thanks
Andrea

=========================================================================
../buffertools.cc:356:1: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } is ill-formed in C++11 [-Wnarrowing]


> i2c...@0.11.3 install /home/pi/.node-red/node_modules/node-red-grovepi-nodes/node_modules/node-grovepi/node_modules/i2c-bus
> node-gyp rebuild


path.js:309
      var path = (i >= 0) ? arguments[i] : process.cwd();
                                                   ^
Error: ENOENT, no such file or directory
    at Object.exports.resolve (path.js:309:52)
    at Function.Module._resolveLookupPaths (module.js:260:17)
    at Function.Module._resolveFilename (module.js:328:31)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/share/node-gyp/bin/node-gyp.js:13:11)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
 
npm ERR! sl...@3.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sl...@3.0.1 install script.
npm ERR! This is most likely a problem with the sleep package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls sleep
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.1.20-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-red-grovepi-nodes"
npm ERR! cwd /home/pi/.node-red
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/.node-red/npm-debug.log
npm ERR! not ok code 0
=========================================================================

Mark Setrem

unread,
Mar 26, 2016, 4:04:12 PM3/26/16
to Node-RED
Your version of npm is too old.
It is worth trying again after you have upgraded npm to v2 ( and NOT v3) as per the instructions here http://nodered.org/docs/hardware/raspberrypi. (look at the "adding nodes" section)

You don't say how old your installation of node-red is  
The latest version is v0.13.3 if your version of node-red is significantly older than that it might new worth upgrading that at the same time.

If you get stuck, come back to this thread...

David Williams

unread,
Apr 19, 2016, 4:05:08 AM4/19/16
to Node-RED
I love, love, love node-red. That said, the issues around having to use old versions of node.js, old version of NPM, and broken NPM installations with gyp is very frustrating.

When there is a gap in my time between the last time I chased down installing say a grovepi, board onto a raspberry pi, all these issues raise their head again, and I find myself spending hours attempting to find the solutions to getting node-red packages installed and working on an additional raspberry pi.

Is there a plan to move node-red to a more current release of node.js and the latest NPM and fix whatever the mystery is with node-gyp?
The kind of archaeological searches in google to find solutions to simply install a node-red package is exhausting. 

Nicholas O'Leary

unread,
Apr 19, 2016, 4:31:36 AM4/19/16
to Node-RED Mailing List
Hi David,

Node-RED supports all the latest versions of node/npm.

The problem is that the only version of node that is properly packaged for the Pi is 0.10 - so that is what our preinstalled version has to use. Upgrading that is out of our hands - Raspbian gets it from Debian stable, which isn't due to update until the end of the year. We are equally frustrated by this and will be discussing options with the Raspberry Pi guys in the near future.

This is also why we provide comprehensive instructions for updating your version of node etc in the docs that Mark linked to.


Nick

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
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.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages