{"action":"opened","issue":{"url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/673","repository_url":"https://api.github.com/repos/voodootikigod/node-serialport","labels_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/673/labels{/name}","comments_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/673/comments","events_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/673/events","html_url":"https://github.com/voodootikigod/node-serialport/issues/673","id":135536140,"number":673,"title":"Problem installing on Rasperry Pi","user":{"login":"howardkitto","id":11452899,"avatar_url":"https://avatars.githubusercontent.com/u/11452899?v=3","gravatar_id":"","url":"https://api.github.com/users/howardkitto","html_url":"https://github.com/howardkitto","followers_url":"https://api.github.com/users/howardkitto/followers","following_url":"https://api.github.com/users/howardkitto/following{/other_user}","gists_url":"https://api.github.com/users/howardkitto/gists{/gist_id}","starred_url":"https://api.github.com/users/howardkitto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardkitto/subscriptions","organizations_url":"https://api.github.com/users/howardkitto/orgs","repos_url":"https://api.github.com/users/howardkitto/repos","events_url":"https://api.github.com/users/howardkitto/events{/privacy}","received_events_url":"https://api.github.com/users/howardkitto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-22T20:36:15Z","updated_at":"2016-02-22T20:36:15Z","closed_at":null,"body":"I'm trying to install serialport on my Raspberry Pi\r\n\r\nI ran\r\n`sudo apt-get update`\r\n and \r\n`sudo apt upgrade -y`\r\n\r\nbut still get this error when I run \r\n`sudo npm install serialport`\r\n\r\nIs there a solution?\r\n\r\n> serialport@2.0.6 install /home/pi/Documents/NodeProjects/webservice/node_modules/serialport\r\n> node-pre-gyp install --fallback-to-build\r\n\r\nmake: Entering directory '/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build'\r\n  CXX(target) Release/obj.target/serialport/src/serialport.o\r\nIn file included from ../src/serialport.h:5:0,\r\n                 from ../src/serialport.cpp:3:\r\n../node_modules/nan/nan.h:316:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’\r\n   static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;\r\n                                               ^\r\nserialport.target.mk:84: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed\r\nmake: *** [Release/obj.target/serialport/src/serialport.o] Error 1\r\nmake: Leaving directory '/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build'\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)\r\ngyp ERR! System Linux 4.1.17+\r\ngyp ERR! command \"nodejs\" \"/usr/bin/node-gyp\" \"build\" \"--fallback-to-build\" \"--module=/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node\" \"--module_name=serialport\" \"--module_path=/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build/Release/node-v11-linux-arm\"\r\ngyp ERR! cwd /home/pi/Documents/NodeProjects/webservice/node_modules/serialport\r\ngyp ERR! node -v v0.10.29\r\ngyp ERR! node-gyp -v v0.12.2\r\ngyp ERR! not ok \r\nnode-pre-gyp ERR! build error \r\nnode-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --module=/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build/Release/node-v11-linux-arm' (1)\r\nnode-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)\r\nnode-pre-gyp ERR! stack     at ChildProcess.emit (events.js:98:17)\r\nnode-pre-gyp ERR! stack     at maybeClose (child_process.js:755:16)\r\nnode-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:822:5)\r\nnode-pre-gyp ERR! System Linux 4.1.17+\r\nnode-pre-gyp ERR! command \"node\" \"/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/node_modules/.bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"\r\nnode-pre-gyp ERR! cwd /home/pi/Documents/NodeProjects/webservice/node_modules/serialport\r\nnode-pre-gyp ERR! node -v v0.10.29\r\nnode-pre-gyp ERR! node-pre-gyp -v v0.6.18\r\nnode-pre-gyp ERR! not ok \r\nFailed to execute 'node-gyp build --fallback-to-build --module=/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/Documents/NodeProjects/webservice/node_modules/serialport/build/Release/node-v11-linux-arm' (1)\r\nnpm WARN This failure might be due to the use of legacy binary \"node\"\r\nnpm WARN For further explanations, please read\r\n/usr/share/doc/nodejs/README.Debian\r\n \r\nnpm ERR! serialport@2.0.6 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.6 install script.\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! System Linux 4.1.17+\r\nnpm ERR! command \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"install\"\r\nnpm ERR! cwd /home/pi/Documents/NodeProjects/webservice\r\nnpm ERR! node -v v0.10.29\r\nnpm ERR! npm -v 1.4.21\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /home/pi/Documents/NodeProjects/webservice/npm-debug.log\r\nnpm ERR! not ok code 0\r\n"}}