p5.serialserver
totovr opened this issue · 5 comments
totovr commented
When I tried to install p5.serialserver
in my Mac I got the next errors:
> serialport@4.0.7 install /Users/bsys/node_modules/p5.serialserver/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/local/bin/node',
node-pre-gyp verb cli '/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@8.11.1 | darwin | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@8.11.1 (node-v57 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http EACCES: permission denied, mkdir '/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build'
node-pre-gyp verb command build [ 'rebuild' ]
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build'
gyp ERR! System Darwin 17.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build/Release"
gyp ERR! cwd /Users/bsys/node_modules/p5.serialserver/node_modules/serialport
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
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 configure --fallback-to-build --module=/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Darwin 17.5.0
node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/bsys/node_modules/p5.serialserver/node_modules/serialport
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.32
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 configure --fallback-to-build --module=/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/Users/bsys/node_modules/p5.serialserver/node_modules/serialport/build/Release' (1)
npm WARN enoent ENOENT: no such file or directory, open '/Users/bsys/package.json'
npm WARN bsys No description
npm WARN bsys No repository field.
npm WARN bsys No README data
npm WARN bsys No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@4.0.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bsys/.npm/_logs/2018-05-04T16_19_25_570Z-debug.log
~~~Go to ```~/node_modules``` create a folder called p5.serialserver paste ```startserver.js```~~~
~~~Run in terminal with node ```~/node_modules/p5.serialserver/startserver.js```~~~
totovr commented
Error, I could could not solved it, the server is not working, any idea?
vanevery commented
Looks like it is a permissions error.
Can you try again with sudo?
sudo npm install p5.serialserver
totovr commented
I think that is looking for a version of serial port that is not supported
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-darwin-x64.tar.gz
totovr commented
I think that the serial-port
version is not updated so is not possible to download it
"dependencies": {
"serialport": "^4.0.3",
"ws": "^1.1.1"
},
totovr commented
I could run it in the next way
- Install serial-port with
npm install serialport
I installed this in a locally way
- Downloading p5.serialcontrol
Rename the folder with the name of p5.serialserver
-
Paste it in the node_modules folder that was created with the installation of serial-port
-
open a terminal an run
~/node_modules/p5.serialserver/startserver.js