{"action":"created","issue":{"url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/649","labels_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/649/labels{/name}","comments_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/649/comments","events_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/649/events","html_url":"https://github.com/voodootikigod/node-serialport/issues/649","id":123760505,"number":649,"title":"failed to install node-serialport on Raspberry Pi2 ","user":{"login":"ericdai","id":1776435,"avatar_url":"https://avatars.githubusercontent.com/u/1776435?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdai","html_url":"https://github.com/ericdai","followers_url":"https://api.github.com/users/ericdai/followers","following_url":"https://api.github.com/users/ericdai/following{/other_user}","gists_url":"https://api.github.com/users/ericdai/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdai/subscriptions","organizations_url":"https://api.github.com/users/ericdai/orgs","repos_url":"https://api.github.com/users/ericdai/repos","events_url":"https://api.github.com/users/ericdai/events{/privacy}","received_events_url":"https://api.github.com/users/ericdai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-24T05:34:33Z","updated_at":"2015-12-25T04:16:53Z","closed_at":null,"body":"I follow the document to install serialport module on Raspberry Pi2 ,but failed.\r\npi@raspberrypi:~ $ sudo npm install serialport\r\n/\r\n> serialport@2.0.5 install /home/pi/node_modules/serialport\r\n> node-pre-gyp install --fallback-to-build\r\n\r\ngyp WARN EACCES user \"root\" does not have permission to access the dev dir \"/roo                                                            t/.node-gyp/0.12.6\"\r\ngyp WARN EACCES attempting to reinstall using temporary dev dir \"/home/pi/node_m                                                            odules/serialport/.node-gyp\"\r\ngyp WARN install got an error, rolling back install\r\ngyp WARN install got an error, rolling back install\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: read ECONNRESET\r\ngyp ERR! stack     at exports._errnoException (util.js:746:11)\r\ngyp ERR! stack     at TCP.onread (net.js:559:26)\r\ngyp ERR! System Linux 4.1.13-v7+\r\ngyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_mod                                                            ules/node-gyp/bin/node-gyp.js\" \"configure\" \"--fallback-to-build\" \"--module=/home                                                            /pi/node_modules/serialport/build/Release/node-v14-linux-arm/serialport.node\" \"-                                                            -module_name=serialport\" \"--module_path=/home/pi/node_modules/serialport/build/R                                                            elease/node-v14-linux-arm\"\r\ngyp ERR! cwd /home/pi/node_modules/serialport\r\ngyp ERR! node -v v0.12.6\r\ngyp ERR! node-gyp -v v2.0.1\r\ngyp ERR! not ok\r\nnode-pre-gyp ERR! build error\r\nnode-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=/home/pi/node_modules/serialport/build/Release/node-v14-linux                                                            -arm/serialport.node --module_name=serialport --module_path=/home/pi/node_module                                                            s/serialport/build/Release/node-v14-linux-arm' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/pi/node_modules/s                                                            erialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\nnode-pre-gyp ERR! stack     at maybeClose (child_process.js:1015:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_proces                                                            s.js:1087:5)\r\nnode-pre-gyp ERR! System Linux 4.1.13-v7+\r\nnode-pre-gyp ERR! command \"node\" \"/home/pi/node_modules/serialport/node_modules/                                                            .bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /home/pi/node_modules/serialport\r\nnode-pre-gyp ERR! node -v v0.12.6\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.13\r\nnode-pre-gyp ERR! not ok\r\nFailed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modu                                                            les/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/nod                                                            e_modules/serialport/build/Release/node-v14-linux-arm/serialport.node --module_n                                                            ame=serialport --module_path=/home/pi/node_modules/serialport/build/Release/node                                                            -v14-linux-arm' (1)\r\nnpm ERR! Linux 4.1.13-v7+\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"serialport\"\r\nnpm ERR! node v0.12.6\r\nnpm ERR! npm  v2.11.2\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! serialport@2.0.5 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the serialport@2.0.5 install script 'node-pre-gyp install --f                                                            allback-to-build'.\r\nnpm ERR! This is most likely a problem with the serialport package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls serialport\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/pi/npm-debug.log\r\npi@raspberrypi:~ $\r\n\r\nhow to process it ?"},"comment":{"url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/comments/167190515","html_url":"https://github.com/voodootikigod/node-serialport/issues/649#issuecomment-167190515","issue_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/649","id":167190515,"user":{"login":"cheton","id":447801,"avatar_url":"https://avatars.githubusercontent.com/u/447801?v=3","gravatar_id":"","url":"https://api.github.com/users/cheton","html_url":"https://github.com/cheton","followers_url":"https://api.github.com/users/cheton/followers","following_url":"https://api.github.com/users/cheton/following{/other_user}","gists_url":"https://api.github.com/users/cheton/gists{/gist_id}","starred_url":"https://api.github.com/users/cheton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheton/subscriptions","organizations_url":"https://api.github.com/users/cheton/orgs","repos_url":"https://api.github.com/users/cheton/repos","events_url":"https://api.github.com/users/cheton/events{/privacy}","received_events_url":"https://api.github.com/users/cheton/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T04:16:53Z","updated_at":"2015-12-25T04:16:53Z","body":"I also encountered similar installation issue with Node.js v4.2 and serialport-2.0.5 since yesterday.\r\n\r\n```bash\r\nnpm ERR! Linux 2.6.32-71.el6.x86_64\r\nnpm ERR! argv \"/home/cheton/.nvm/versions/node/v4.2.2/bin/node\" \"/home/cheton/.nvm/versions/node/v4.2.2/bin/npm\" \"install\"\r\nnpm ERR! node v4.2.2\r\nnpm ERR! npm  v2.14.7\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! serialport@2.0.5 install: `node-pre-gyp install --fallback-to-build`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the serialport@2.0.5 install script 'node-pre-gyp install --fallback-to-build'.\r\nnpm ERR! This is most likely a problem with the serialport package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-pre-gyp install --fallback-to-build\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls serialport\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/cheton/github/cnc.js/npm-debug.log\r\n```"}}