Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
npm install serialport
-
> serialport@1.5.0 install /Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport
> node-pre-gyp install --fallback-to-build
child_process: customFds option is deprecated, use stdio instead.
CXX(target) Release/obj.target/serialport/src/serialport.o
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
../src/serialport_unix.cpp:663:20: warning: comparison of array 'device.locationId' not equal to a null pointer is always true [-Wtautological-pointer-compare]
if (device.locationId != NULL) {
~~~~~~~^~~~~~~~~~ ~~~~
../src/serialport_unix.cpp:666:20: warning: comparison of array 'device.vendorId' not equal to a null pointer is always true [-Wtautological-pointer-compare]
if (device.vendorId != NULL) {
~~~~~~~^~~~~~~~ ~~~~
../src/serialport_unix.cpp:669:20: warning: comparison of array 'device.productId' not equal to a null pointer is always true [-Wtautological-pointer-compare]
if (device.productId != NULL) {
~~~~~~~^~~~~~~~~ ~~~~
../src/serialport_unix.cpp:672:20: warning: comparison of array 'device.manufacturer' not equal to a null pointer is always true [-Wtautological-pointer-compare]
if (device.manufacturer != NULL) {
~~~~~~~^~~~~~~~~~~~ ~~~~
../src/serialport_unix.cpp:675:20: warning: comparison of array 'device.serialNumber' not equal to a null pointer is always true [-Wtautological-pointer-compare]
if (device.serialNumber != NULL) {
~~~~~~~^~~~~~~~~~~~ ~~~~
5 warnings generated.
CXX(target) Release/obj.target/serialport/src/serialport_poller.o
SOLINK_MODULE(target) Release/serialport.node
SOLINK_MODULE(target) Release/serialport.node: Finished
COPY /Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64/serialport.node
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `printf '%s\n' 'cmd_/Users/zsupalla/Dropbox?(Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64/serialport.node := rm -rf "/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64/serialport.node" && cp -af "Release/serialport.node" "/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64/serialport.node"' > ./Release/.deps//Users/zsupalla/Dropbox?(Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64/serialport.node.d'
make: *** [/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64/serialport.node] Error 2
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=serialport" "--configuration=Release" "--module_name=serialport" "--version=1.5.0" "--major=1" "--minor=5" "--runtime=node" "--node_abi=node-v14" "--platform=darwin" "--target_platform=darwin" "--arch=x64" "--target_arch=x64" "--module_main=./serialport" "--host=https://node-serialport.s3.amazonaws.com/" "--module_path=/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64" "--remote_path=./serialport/v1.5.0/Release/" "--package_name=node-v14-darwin-x64.tar.gz" "--staged_tarball=build/stage/serialport/v1.5.0/Release/node-v14-darwin-x64.tar.gz" "--hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.5.0/Release/" "--hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.5.0/Release/node-v14-darwin-x64.tar.gz"
gyp ERR! cwd /Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.5.0 --major=1 --minor=5 --runtime=node --node_abi=node-v14 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64 --remote_path=./serialport/v1.5.0/Release/ --package_name=node-v14-darwin-x64.tar.gz --staged_tarball=build/stage/serialport/v1.5.0/Release/node-v14-darwin-x64.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.5.0/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.5.0/Release/node-v14-darwin-x64.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:1015:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
node-pre-gyp ERR! System Darwin 14.4.0
node-pre-gyp ERR! command "node" "/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport
node-pre-gyp ERR! node -v v0.12.2
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.5.0 --major=1 --minor=5 --runtime=node --node_abi=node-v14 --platform=darwin --target_platform=darwin --arch=x64 --target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/node_modules/serialport/build/serialport/v1.5.0/Release/node-v14-darwin-x64 --remote_path=./serialport/v1.5.0/Release/ --package_name=node-v14-darwin-x64.tar.gz --staged_tarball=build/stage/serialport/v1.5.0/Release/node-v14-darwin-x64.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.5.0/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.5.0/Release/node-v14-darwin-x64.tar.gz' (1)
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "serialport"
npm ERR! node v0.12.2
npm ERR! npm v2.7.5
npm ERR! code ELIFECYCLE
npm ERR! serialport@1.5.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serialport@1.5.0 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! 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 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! /Users/zsupalla/Dropbox (Spark)/Software/Code/spark-cli/npm-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment