Closed anthonywebb closed 8 years ago
I was able to "npm install serialport" but it installed 2.0.5, I am wondering if you updated your package.json if things would work?
This issue is resolved with this pull request https://github.com/giseburt/TinyG-node/pull/2
Hi @anthonywebb ,
I use this all the time, but I realized I have a few commits I failed to push. The change in your pull request is one of them.
Thanks again for the pull request. Let me know if you have any questions or have any feature requests.
-Rob
Thanks for the library @giseburt ! Very handy to have a way to easily control my tinyg from nodejs.
I assume there will need to be another release of the library so that my "npm install" will work properly, right? Is that something you can do?
I just did a few minutes ago. Look for version 0.3.27.
On Jan 11, 2016, at 4:09 PM, Anthony Webb notifications@github.com wrote:
Thanks for the library @giseburt https://github.com/giseburt ! Very handy to have a way to easily control my tinyg from nodejs.
I assume there will need to be another release of the library so that my "npm install" will work properly, right? Is that something you can do?
— Reply to this email directly or view it on GitHub https://github.com/giseburt/TinyG-node/issues/1#issuecomment-170707117.
Installed great! Thanks again @giseburt
Installing this library on both my mac (with node 4.1.1) and raspberry pi (with node 4.2.1) yeilds almost the same message. Is there a trick to getting this installed? Looks like a nice lib!
pi@raspberrypi:~/tinyg $ sudo npm install -g tinyg
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.2.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/tinyg/node_modules/serialport/.node-gyp" make: Entering directory '/usr/local/lib/node_modules/tinyg/node_modules/serialport/build' make: *\ No rule to make target '../.node-gyp/4.2.1/include/node/common.gypi', needed by 'Makefile'. Stop. make: Leaving directory '/usr/local/lib/node_modules/tinyg/node_modules/serialport/build' gyp ERR! build error gyp ERR! stack Error: (/usr/local/lib/node_modules/tinyg/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:818:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Linux 4.1.13-v7+
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/tinyg/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/tinyg/node_modules/serialport
node-pre-gyp ERR! node -v v4.2.1
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/tinyg/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/tinyg/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm' (1)
npm ERR! Linux 4.1.13-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "tinyg"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
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:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 4.1.13-v7+ 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/tinyg/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node" "--module_name=serialport" "--module_path=/usr/local/lib/node_modules/tinyg/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm" gyp ERR! cwd /usr/local/lib/node_modules/tinyg/node_modules/serialport gyp ERR! node -v v4.2.1 gyp ERR! node-gyp -v v3.0.3 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/tinyg/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/tinyg/node_modules/serialport/build/serialport/v1.7.4/Release/node-v46-linux-arm' (1) node-pre-gyp ERR! stack at ChildProcess.npm ERR! serialport@1.7.4 install:
node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@1.7.4 install script 'node-pre-gyp install --fallback-to-build'. 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! Please include the following file with any support request: npm ERR! /home/pi/tinyg/npm-debug.log