Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue in Raspberry PI2 #23

Open
viikari opened this issue Dec 5, 2016 · 4 comments
Open

Installation issue in Raspberry PI2 #23

viikari opened this issue Dec 5, 2016 · 4 comments

Comments

@viikari
Copy link

viikari commented Dec 5, 2016

Hi!

I tried yesterday to install this gpio node to Raspberry PI2 and installation fails. I didn't got nodes to show in node-red editor. I tried install gpio node to ./node-red directory as shown in examples with or without sudo without success. During installation I got error message from serial port library:

[email protected] install /usr/lib/node_modules/node-red-contrib-gpio/node_modules/johnny-five/node_modules/serialport
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.6/serialport-v4.0.6-node-v46-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI) (falling back to source compile with node-gyp)

During installation there was no other warnings or errors than this one.

So, installation could not find serialport library. When node-red starts it also gave warning about missing serial port library:
4 Dec 23:36:25 - [info] Node-RED version: v0.15.2
4 Dec 23:36:25 - [info] Node.js version: v4.6.2
4 Dec 23:36:25 - [info] Linux 4.4.34-v7+ arm LE
4 Dec 23:36:26 - [info] Loading palette nodes
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python -u /usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio.py info
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
4 Dec 23:36:32 - [info] Dashboard up and running
4 Dec 23:36:36 - [info] Dashboard started at /ui
4 Dec 23:36:43 - [warn] ------------------------------------------------------
4 Dec 23:36:43 - [warn] [gpio] Error: Cannot find module 'serialport'
4 Dec 23:36:43 - [warn] ------------------------------------------------------
4 Dec 23:36:43 - [info] Settings file : /home/pi/.node-red/settings.js
4 Dec 23:36:43 - [info] User directory : /home/pi/.node-red
4 Dec 23:36:43 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
4 Dec 23:36:43 - [info] Server now running at https://127.0.0.1:1880/
4 Dec 23:36:43 - [info] Starting flows
4 Dec 23:36:43 - [info] Started flows

So, what's going wrong with this installation?

//Kari

@monteslu
Copy link
Owner

monteslu commented Dec 5, 2016

Mistakenly pulled serialport because when using npm 3 it gets hoisted up from johnny-five.

I just published version 0.9.1 to fix this. Please give that a shot.

@viikari
Copy link
Author

viikari commented Dec 7, 2016

Fix seems to work and installation was success, , but serial port still gave me an similar error.

@monteslu
Copy link
Owner

monteslu commented Dec 7, 2016

can you paste the error you're currently getting?

@viikari
Copy link
Author

viikari commented Dec 8, 2016

During installation error was same than before:
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.6/serialport-v4.0.6-node-v46-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v46 ABI) (falling back to source compile with node-gyp)

It seems that download link is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants