serialport / node-serialport

Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
https://serialport.io
MIT License
5.83k stars 1.01k forks source link

Build fails for HypriotOS armv7 nodejs 6.5.0 #1005

Closed goliatone closed 7 years ago

goliatone commented 8 years ago

SerialPort version: 4.0.5 NodeJS Version: v6.5.0 Operating System and Hardware Platform: hypriot os Version 1.1.0 #Raspbian GNU/Linux 8 (jessie)

Summary of Problem

Running serialport inside a docker container on a Raspberry Pi- build was working with 4.0.1

Steps and Code to Reproduce the Issue

> serialport@4.0.5 install /usr/src/app/node_modules/raspi-serial/node_modules/serialport
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.31
node-pre-gyp info using node@6.5.0 | linux | arm
node-pre-gyp info check checked for "/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.5/serialport-v4.0.5-node-v48-linux-arm.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.5/serialport-v4.0.5-node-v48-linux-arm.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.5/serialport-v4.0.5-node-v48-linux-arm.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.5 and node@6.5.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.5/serialport-v4.0.5-node-v48-linux-arm.tar.gz 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.5.0 | linux | arm
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.5.0 | linux | arm
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/src/app/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/src/app/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/root/.node-gyp/6.5.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/root/.node-gyp/6.5.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/src/app/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/usr/src/app/node_modules/raspi-serial/node_modules/serialport',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info ok 
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.5.0 | linux | arm
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build'
  CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function ‘int getIntFromObject(v8::Local<v8::Object>, std::string)’:
../src/serialport.cpp:90:52: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   return getValueFromObject(options, key)->ToInt32()->Int32Value();
                                                    ^
../src/serialport.cpp: In function ‘double getDoubleFromObject(v8::Local<v8::Object>, std::string)’:
../src/serialport.cpp:102:53: warning: ‘v8::Local<v8::Number> v8::Value::ToNumber() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8166): Use maybe version [-Wdeprecated-declarations]
   return getValueFromObject(options, key)->ToNumber()->NumberValue();
                                                     ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:144:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(info[2].As<v8::Function>());
                   ^
../src/serialport.cpp: In function ‘void EIO_AfterOpen(uv_work_t*)’:
../src/serialport.cpp:174:31: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
     int fd = argv[1]->ToInt32()->Int32Value();
                               ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:193:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
../src/serialport.cpp:217:116: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
                                                                                                                    ^
../src/serialport.cpp:218:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(info[2].As<v8::Function>());
                   ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:252:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
../src/serialport.cpp:276:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(info[2].As<v8::Function>());
                   ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:369:32: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   baton->fd = info[0]->ToInt32()->Int32Value();
                                ^
../src/serialport.cpp:370:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(info[1].As<v8::Function>());
                   ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE List(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:418:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(info[0].As<v8::Function>());
                   ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:480:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
../src/serialport.cpp:492:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(callback);
                   ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:528:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
../src/serialport.cpp:547:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(callback);
                   ^
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:585:29: warning: ‘v8::Local<v8::Int32> v8::Value::ToInt32() const’ is deprecated (declared at /root/.node-gyp/6.5.0/include/node/v8.h:8202): Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
../src/serialport.cpp:596:19: error: ‘class Nan::Callback’ has no member named ‘Reset’
   baton->callback.Reset(info[1].As<v8::Function>());
                   ^
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
serialport.target.mk:94: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: Leaving directory '/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/src/app/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.24-hypriotos-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/src/app/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/Release"
gyp ERR! cwd /usr/src/app/node_modules/raspi-serial/node_modules/serialport
gyp ERR! node -v v6.5.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/src/app/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/src/app/node_modules/raspi-serial/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:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.24-hypriotos-v7+
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/src/app/node_modules/raspi-serial/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/src/app/node_modules/raspi-serial/node_modules/serialport
node-pre-gyp ERR! node -v v6.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.31
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /usr/src/app/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/src/app/node_modules/raspi-serial/node_modules/serialport/build/Release' (1)
npm info lifecycle serialport@4.0.5~install: Failed to exec install script
secure-node-poc@0.0.0 /usr/src/app
├─┬ ascoltatori@3.1.0
│ └── zmq@2.15.3 
├─┬ johnny-five@0.10.0 
│ ├── browser-serialport@2.0.3 
│ ├── chalk@1.1.3 
│ ├── color-convert@1.2.2 
│ ├── ease-component@1.0.0 
│ ├── es6-shim@0.35.1 
│ ├── firmata@0.14.1 
│ ├── lodash.clonedeep@4.5.0 
│ ├── lodash.debounce@4.0.8 
│ ├── nanotimer@0.3.10 
│ ├─┬ serialport@4.0.1 
│ │ ├─┬ node-pre-gyp@0.6.29 
│ │ │ ├─┬ mkdirp@0.5.1 
│ │ │ │ └── minimist@0.0.8 
│ │ │ ├─┬ nopt@3.0.6 
│ │ │ │ └── abbrev@1.0.9 
│ │ │ ├─┬ npmlog@3.1.2 
│ │ │ │ ├─┬ are-we-there-yet@1.1.2 
│ │ │ │ │ ├── delegates@1.0.0 
│ │ │ │ │ └─┬ readable-stream@2.1.4 
│ │ │ │ │   ├── buffer-shims@1.0.0 
│ │ │ │ │   ├── core-util-is@1.0.2 
│ │ │ │ │   ├── inherits@2.0.1 
│ │ │ │ │   ├── isarray@1.0.0 
│ │ │ │ │   ├── process-nextick-args@1.0.7 
│ │ │ │ │   ├── string_decoder@0.10.31 
│ │ │ │ │   └── util-deprecate@1.0.2 
│ │ │ │ ├── console-control-strings@1.1.0 
│ │ │ │ ├─┬ gauge@2.6.0 
│ │ │ │ │ ├── aproba@1.0.4 
│ │ │ │ │ ├── has-color@0.1.7 
│ │ │ │ │ ├── has-unicode@2.0.1 
│ │ │ │ │ ├── object-assign@4.1.0 
│ │ │ │ │ ├── signal-exit@3.0.0 
│ │ │ │ │ ├─┬ string-width@1.0.1 
│ │ │ │ │ │ ├─┬ code-point-at@1.0.0 
│ │ │ │ │ │ │ └── number-is-nan@1.0.0 
│ │ │ │ │ │ └─┬ is-fullwidth-code-point@1.0.0 
│ │ │ │ │ │   └── number-is-nan@1.0.0 
│ │ │ │ │ ├─┬ strip-ansi@3.0.1 
│ │ │ │ │ │ └── ansi-regex@2.0.0 
│ │ │ │ │ └── wide-align@1.1.0 
│ │ │ │ └── set-blocking@2.0.0 
│ │ │ ├─┬ rc@1.1.6 
│ │ │ │ ├── deep-extend@0.4.1 
│ │ │ │ ├── ini@1.3.4 
│ │ │ │ ├── minimist@1.2.0 
│ │ │ │ └── strip-json-comments@1.0.4 
│ │ │ ├─┬ request@2.73.0 
│ │ │ │ ├── aws-sign2@0.6.0 
│ │ │ │ ├── aws4@1.4.1 
│ │ │ │ ├─┬ bl@1.1.2 
│ │ │ │ │ └─┬ readable-stream@2.0.6 
│ │ │ │ │   ├── core-util-is@1.0.2 
│ │ │ │ │   ├── inherits@2.0.1 
│ │ │ │ │   ├── isarray@1.0.0 
│ │ │ │ │   ├── process-nextick-args@1.0.7 
│ │ │ │ │   ├── string_decoder@0.10.31 
│ │ │ │ │   └── util-deprecate@1.0.2 
│ │ │ │ ├── caseless@0.11.0 
│ │ │ │ ├─┬ combined-stream@1.0.5 
│ │ │ │ │ └── delayed-stream@1.0.0 
│ │ │ │ ├── extend@3.0.0 
│ │ │ │ ├── forever-agent@0.6.1 
│ │ │ │ ├─┬ form-data@1.0.0-rc4 
│ │ │ │ │ └── async@1.5.2 
│ │ │ │ ├─┬ har-validator@2.0.6 
│ │ │ │ │ ├─┬ chalk@1.1.3 
│ │ │ │ │ │ ├── ansi-styles@2.2.1 
│ │ │ │ │ │ ├── escape-string-regexp@1.0.5 
│ │ │ │ │ │ ├─┬ has-ansi@2.0.0 
│ │ │ │ │ │ │ └── ansi-regex@2.0.0 
│ │ │ │ │ │ ├─┬ strip-ansi@3.0.1 
│ │ │ │ │ │ │ └── ansi-regex@2.0.0 
│ │ │ │ │ │ └── supports-color@2.0.0 
│ │ │ │ │ ├─┬ is-my-json-valid@2.13.1 
│ │ │ │ │ │ ├── generate-function@2.0.0 
│ │ │ │ │ │ ├─┬ generate-object-property@1.2.0 
│ │ │ │ │ │ │ └── is-property@1.0.2 
│ │ │ │ │ │ ├── jsonpointer@2.0.0 
│ │ │ │ │ │ └── xtend@4.0.1 
│ │ │ │ │ └─┬ pinkie-promise@2.0.1 
│ │ │ │ │   └── pinkie@2.0.4 
│ │ │ │ ├─┬ hawk@3.1.3 
│ │ │ │ │ ├── boom@2.10.1 
│ │ │ │ │ ├── cryptiles@2.0.5 
│ │ │ │ │ ├── hoek@2.16.3 
│ │ │ │ │ └── sntp@1.0.9 
│ │ │ │ ├─┬ http-signature@1.1.1 
│ │ │ │ │ ├── assert-plus@0.2.0 
│ │ │ │ │ ├─┬ jsprim@1.3.0 
│ │ │ │ │ │ ├── extsprintf@1.0.2 
│ │ │ │ │ │ ├── json-schema@0.2.2 
│ │ │ │ │ │ └── verror@1.3.6 
│ │ │ │ │ └─┬ sshpk@1.8.3 
│ │ │ │ │   ├── asn1@0.2.3 
│ │ │ │ │   ├── assert-plus@1.0.0 
│ │ │ │ │   ├── dashdash@1.14.0 
│ │ │ │ │   ├── ecc-jsbn@0.1.1 
│ │ │ │ │   ├── getpass@0.1.6 
│ │ │ │ │   ├── jodid25519@1.0.2 
│ │ │ │ │   ├── jsbn@0.1.0 
│ │ │ │ │   └── tweetnacl@0.13.3 
│ │ │ │ ├── is-typedarray@1.0.0 
│ │ │ │ ├── isstream@0.1.2 
│ │ │ │ ├── json-stringify-safe@5.0.1 
│ │ │ │ ├─┬ mime-types@2.1.11 
│ │ │ │ │ └── mime-db@1.23.0 
│ │ │ │ ├── node-uuid@1.4.7 
│ │ │ │ ├── oauth-sign@0.8.2 
│ │ │ │ ├── qs@6.2.0 
│ │ │ │ ├── stringstream@0.0.5 
│ │ │ │ ├── tough-cookie@2.2.2 
│ │ │ │ └── tunnel-agent@0.4.3 
│ │ │ ├─┬ rimraf@2.5.3 
│ │ │ │ └─┬ glob@7.0.5 
│ │ │ │   ├── fs.realpath@1.0.0 
│ │ │ │   ├─┬ inflight@1.0.5 
│ │ │ │   │ └── wrappy@1.0.2 
│ │ │ │   ├── inherits@2.0.1 
│ │ │ │   ├─┬ minimatch@3.0.2 
│ │ │ │   │ └─┬ brace-expansion@1.1.5 
│ │ │ │   │   ├── balanced-match@0.4.1 
│ │ │ │   │   └── concat-map@0.0.1 
│ │ │ │   ├─┬ once@1.3.3 
│ │ │ │   │ └── wrappy@1.0.2 
│ │ │ │   └── path-is-absolute@1.0.0 
│ │ │ ├── semver@5.2.0 
│ │ │ ├─┬ tar@2.2.1 
│ │ │ │ ├── block-stream@0.0.9 
│ │ │ │ ├─┬ fstream@1.0.10 
│ │ │ │ │ └── graceful-fs@4.1.4 
│ │ │ │ └── inherits@2.0.1 
│ │ │ └─┬ tar-pack@3.1.4 
│ │ │   ├─┬ debug@2.2.0 
│ │ │   │ └── ms@0.7.1 
│ │ │   ├─┬ fstream@1.0.10 
│ │ │   │ ├── graceful-fs@4.1.4 
│ │ │   │ └── inherits@2.0.1 
│ │ │   ├─┬ fstream-ignore@1.0.5 
│ │ │   │ ├── inherits@2.0.1 
│ │ │   │ └─┬ minimatch@3.0.2 
│ │ │   │   └─┬ brace-expansion@1.1.5 
│ │ │   │     ├── balanced-match@0.4.1 
│ │ │   │     └── concat-map@0.0.1 
│ │ │   ├─┬ once@1.3.3 
│ │ │   │ └── wrappy@1.0.2 
│ │ │   ├─┬ readable-stream@2.1.4 
│ │ │   │ ├── buffer-shims@1.0.0 
│ │ │   │ ├── core-util-is@1.0.2 
│ │ │   │ ├── inherits@2.0.1 
│ │ │   │ ├── isarray@1.0.0 
│ │ │   │ ├── process-nextick-args@1.0.7 
│ │ │   │ ├── string_decoder@0.10.31 
│ │ │   │ └── util-deprecate@1.0.2 
│ │ │   └── uid-number@0.0.6 
│ │ └─┬ object.assign@4.0.4 
│ │   ├─┬ define-properties@1.1.2 
│ │   │ └── foreach@2.0.5 
│ │   ├── function-bind@1.1.0 
│ │   └── object-keys@1.0.11 
│ └── temporal@0.5.0 
├── raspi@2.1.0  extraneous
├── raspi-gpio@2.3.0  extraneous
├── raspi-i2c@3.1.1  extraneous
├── raspi-led@1.5.1  extraneous
└── raspi-pwm@3.1.0  extraneous

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.15
npm ERR! Linux 4.4.24-hypriotos-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "johnny-five@0.10.0" "raspi-io@6.1.1" "serialport@4.0.1"
npm ERR! node v6.5.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! serialport@4.0.5 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the serialport@4.0.5 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR!     npm bugs serialport
npm ERR! Or if that isn't available, 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!     /usr/src/app/npm-debug.log
goliatone commented 8 years ago

I can confirm that 4.0.1 works fine

thom-nic commented 8 years ago

Yup, looks like this is the same issue as #1004. Good to know that 4.0.1 can be used as a stopgap.

thom-nic commented 8 years ago

See https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/1004#issuecomment-259720600 for a workaround.

reconbot commented 8 years ago

Version 4.0.6 is Released please give it a try and let me know if it fixes this.

reconbot commented 7 years ago

I'm going to close this issue due to it's age, but if you'd like to continue with it feel free to comment and we'll reopen.