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

Error message when running "npm install" on Raspberry Pi 2B (Jessie) #12

Open
intel66 opened this issue Jan 24, 2016 · 8 comments
Open

Comments

@intel66
Copy link

intel66 commented Jan 24, 2016

Error message when running "npm install" in the "server" directory:
npm WARN package.json [email protected] No README data

@roccomuso
Copy link
Owner

Yours is not an Error, just a Warning (http://stackoverflow.com/questions/18057466/npm-how-to-fix-no-readme-data) because of a missing README file. You can ignore it, just make sure that the ./node_modules dir was created without npm error log file.

NB. The package was not yet published on npm. I did it today. But watch out: we're still in Alpha. There's something that gotta be fixed and implemented yet, as you can see here: #3

Switch works great. In the next days I'll commit for the Alarm sensors too.

@roccomuso
Copy link
Owner

I've just refactor the entire directory. No more need to cd server.
Anyway you better install with npm.

npm install iot-433mhz -g --unsafe-perm

@intel66
Copy link
Author

intel66 commented Jan 24, 2016

Hi, thanks for reply. I deleted iot-433mhz-folder and tried "npm install iot-433mhz" but got permission issues.
Tried "sudo npm install iot-433mhz --unsafe-perm"
Got endless lines of:
\

[email protected] install /home/pi/node_modules/iot-433mhz/node_modules/serialport
node-pre-gyp install --fallback-to-build

make: Entering directory '/home/pi/node_modules/iot-433mhz/node_modules/serialport/build'
make: Warning: File '../binding.gyp' has modification time 2693962 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693948 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693946 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693945 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693943 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693942 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693940 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693939 s in the future
ACTION Regenerating Makefile
make: Warning: File '../binding.gyp' has modification time 2693937 s in the future
.......and so on.....

@roccomuso
Copy link
Owner

Ok, let's try to debug together executing this commands.

Which node.js version do you have? node -v
Are you logged in as root or pi user? whoami
Moreover your system time is correct? date

NB. I just did another upgrade 1.0.11 and updated the documentation. Now you gotta install it with the -g flag.

sudo npm install iot-433mhz -g --unsafe-perm

and then to execute:

iot-433mhz

@intel66
Copy link
Author

intel66 commented Jan 25, 2016

Thank you for answer.
Had an old version of node, upgraded to 5.4.1, user: root, date was wrong too, now corrected. My bad..
Install went great, rebooted, but I am unable to connect via browser (192.168.2.251:8080)
when executing iot-433mhz, I must enter a port number, what port should I enter?

root@raspberrypi:~/iot-433mhz# iot-433mhz


|_ |__| | | || ||__ /___ /| / | |__ ____
| |/ _ | || || |_ |_ \ |_ | |/| | '_ |_ /
| | (_) | |
|__ |__) |**) | | | | | | |/ /
|
_/|| |||**//|| ||| |/_|

Debug Mode: true
Running on RPi platform
Using external Arduino: true
Choose a port:
(1) /dev/ttyAMA0
prompt: port:

@roccomuso
Copy link
Owner

@intel66 You must use an arduino with a 433mhz radio receiver/transmitter, connected through USB to your RPi.
As shown in this scheme: https://github.com/roccomuso/iot-433mhz#a-computer-with-arduino-connected-and-a-433-mhz-transmitter-and-receiver

@roccomuso
Copy link
Owner

The project is updated to a quite stable version (1.0.22).

sudo npm install iot-433mhz -g --unsafe-perm

remains the best way to install it on RPi.

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

3 participants
@roccomuso @intel66 and others