Argonne-National-Laboratory / node-red-contrib-modbustcp

Node-Red nodes for communicating with a Modbus TCP server
Other
14 stars 15 forks source link

Serial port error while installing #11

Closed hardikhirpara closed 7 years ago

hardikhirpara commented 7 years ago

I have successfully installed node-red on Cyclone 5 SOC and accessed its GPIO from custom nodes. Now I am trying to install modbus tcp node on this board but I am getting Serial port error. I got the same error on Toradex VF61 module too. I don't know why it is giving serial port error for modbus tcp? Error is as follows:

root@cyclone5:~# npm install node-red-contrib-modbustcp

serialport@4.0.7 install /home/root/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 [ '/home/root/node-v6.11.0-linux-armv7l/bin/node', node-pre-gyp verb cli '/home/root/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@6.11.0 | linux | arm node-pre-gyp verb command install [] node-pre-gyp info check checked for "/home/root/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-v48-linux-arm.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-v48-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@6.11.0 (node-v48 ABI) (falling back to source compile with node-gyp) node-pre-gyp http EACCES: permission denied, mkdir '/home/root/node_modules/serialport/build' node-pre-gyp verb command build [ 'rebuild' ] node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v48-linux-arm.tar.gz node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v48-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@6.11.0 (node-v48 ABI) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v48-linux-arm.tar.gz node-pre-gyp verb command build [ 'rebuild' ] gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/root/node_modules/serialport/build' gyp ERR! stack at Error (native) gyp ERR! System Linux 4.1.17-ltsi-altera gyp ERR! command "/home/root/node-v6.11.0-linux-armv7l/bin/node" "/home/root/node-v6.11.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/root/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/root/node_modules/serialport/build/Release" gyp ERR! cwd /home/root/node_modules/serialport gyp ERR! node -v v6.11.0 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 '/home/root/node-v6.11.0-linux-armv7l/bin/node /home/root/node-v6.11.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/root/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/root/node_modules/serialport/build/Release' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/root/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:891:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) node-pre-gyp ERR! System Linux 4.1.17-ltsi-altera node-pre-gyp ERR! command "/home/root/node-v6.11.0-linux-armv7l/bin/node" "/home/root/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/root/node_modules/serialport node-pre-gyp ERR! node -v v6.11.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.32 node-pre-gyp ERR! not ok Failed to execute '/home/root/node-v6.11.0-linux-armv7l/bin/node /home/root/node-v6.11.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/root/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/home/root/node_modules/serialport/build/Release' (1) gyp ERR! configure error stall: info lifecycle serialport@4.0.7~install: Failed gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/root/node_modules/serialport/build' gyp ERR! stack at Error (native) gyp ERR! System Linux 4.1.17-ltsi-altera gyp ERR! command "/home/root/node-v6.11.0-linux-armv7l/bin/node" "/home/root/node-v6.11.0-linux-armv7l/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/root/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/home/root/node_modules/serialport/build/Release" gyp ERR! cwd /home/root/node_modules/serialport gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/home/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field. npm WARN root Invalid dependency: bcrypt-nodejs undefined

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! /home/root/.npm/_logs/2017-06-26T07_51_30_499Z-debug.log