Closed maxkattner closed 9 years ago
Okay, got it to work now with version 1.6.1
I'm having trouble with this as well, on v1.7.4, as shown in output here: https://gist.github.com/jywarren/c877dc744c7e342bd025
Do you know what about 1.6.1 makes it work? Is it something we could fix? I don't directly call serialport, but use it via the firmata node library. So I can't cleanly specify 1.6.1.
I'm using node v0.10.36, too, so it doesn't seem to be the issue elsewhere in this tracker which was fixed by updating to v0.10.16.
It looks like this is the key error:
make: *\ No rule to make target '../.node-gyp/0.10.36/common.gypi', needed by 'Makefile'. Stop.
So, I'll check in on the node-pre-gyp project.
It seems like it's more about the permissions where I'm running npm install serialport
.
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/serialport/.node-gyp"
make: Entering directory '/usr/local/lib/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/serialport/build'
it to work now with version 1.6.2 too
Not working for me too ! 1.6.2 and 1.6.3 are working but nothing above
did you try --unsafe-perm option ? sudo npm install --unsafe-perm serialport
thanks @niko34 it's working with --unsafe-perm but what this option does exactly ?
I cannot tell you exactly what happens, but when i had the same error, i noticed this message : "gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.12.0". Even if i used "sudo npm...." It was related to a right problem. I found this thread : http://stackoverflow.com/questions/18136746/npm-install-failed-with-cannot-run-in-wd
It tells "Set the unsafe-perm flag to run scripts with root privileges.". May-be using sudo isn't enough to give scripts root privileges....
We need an expert to tell you more...
I just installed 1.7.4 (node v0.10.40) on a pi without issue or any extraneous flags.
Is there a reason our docs link to a specific node version. What if we do the nodesource setup script
curl -sL https://deb.nodesource.com/setup | sudo bash
Sadly it seems to be impossible, to install serialport on (my) Raspberry Pi 2 running raspbian 7. I tried several variations of using sudo and/or different versions. (which where mentioned in other issues)
This is the output I get when trying
npm install serialport
Please don't hesitate to tell me, if I'm doing something completely wrong, but this error seems to be very odd.