Created
October 22, 2014 15:03
-
-
Save landlessness/9f2239aaefc6ac3a04ab to your computer and use it in GitHub Desktop.
npm install serialport failure on BeagleBone Black
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@beaglebone:/var/lib/cloud9/zetta-fona-bonescript-driver# npm install | |
npm http GET https://registry.npmjs.org/serialport | |
npm http 304 https://registry.npmjs.org/serialport | |
npm http GET https://registry.npmjs.org/bindings/1.2.1 | |
npm http GET https://registry.npmjs.org/async/0.9.0 | |
npm http GET https://registry.npmjs.org/sf/0.1.7 | |
npm http 304 https://registry.npmjs.org/async/0.9.0 | |
npm http 304 https://registry.npmjs.org/bindings/1.2.1 | |
npm http 304 https://registry.npmjs.org/sf/0.1.7 | |
npm http GET https://registry.npmjs.org/minimist | |
npm http 304 https://registry.npmjs.org/minimist | |
> [email protected] install /var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport | |
> node-pre-gyp install --fallback-to-build | |
node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz | |
node-pre-gyp http 404 https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz | |
node-pre-gyp http Pre-built binary not available for your system (falling back to source compile with node-gyp) | |
make: Entering directory `/var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport/build' | |
make: Warning: File `../binding.gyp' has modification time 4.8e+06 s in the future | |
ACTION Regenerating Makefile | |
Traceback (most recent call last): | |
File "/usr/share/node-gyp/gyp/gyp", line 18, in <module> | |
sys.exit(gyp.main(sys.argv[1:])) | |
File "/usr/lib/pymodules/python2.7/gyp/__init__.py", line 471, in main | |
options.circular_check) | |
File "/usr/lib/pymodules/python2.7/gyp/__init__.py", line 111, in Load | |
depth, generator_input_info, check, circular_check) | |
File "/usr/lib/pymodules/python2.7/gyp/input.py", line 2378, in Load | |
depth, check) | |
File "/usr/lib/pymodules/python2.7/gyp/input.py", line 358, in LoadTargetBuildFile | |
includes, True, check) | |
File "/usr/lib/pymodules/python2.7/gyp/input.py", line 208, in LoadOneBuildFile | |
raise Exception("%s not found (cwd: %s)" % (build_file_path, os.getcwd())) | |
Exception: binding.gyp not found (cwd: /var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport/build) while trying to load binding.gyp | |
make: *** [Makefile] Error 1 | |
make: Leaving directory `/var/lib/cloud9/zetta-fona-bonescript-driver/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/share/node-gyp/lib/build.js:267:23) | |
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) | |
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) | |
gyp ERR! System Linux 3.8.13-bone47 | |
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" "--name=serialport" "--configuration=Release" "--module_name=serialport" "--version=1.4.6" "--major=1" "--minor=4" "--patch=6" "--runtime=node" "--node_abi=node-v11" "--platform=linux" "--target_platform=linux" "--arch=arm" "--target_arch=arm" "--module_main=./serialport" "--host=https://node-serialport.s3.amazonaws.com/" "--module_path=/var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport/build/serialport/v1.4.6/Release/node-v11-linux-arm" "--remote_path=./serialport/v1.4.6/Release/" "--package_name=node-v11-linux-arm.tar.gz" "--staged_tarball=build/stage/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz" "--hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/" "--hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz" | |
gyp ERR! cwd /var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport | |
gyp ERR! node -v v0.10.25 | |
gyp ERR! node-gyp -v v0.10.10 | |
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.4.6 --major=1 --minor=4 --patch=6 --runtime=node --node_abi=node-v11 --platform=linux --target_platform=linux --arch=arm --target_arch=arm --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport/build/serialport/v1.4.6/Release/node-v11-linux-arm --remote_path=./serialport/v1.4.6/Release/ --package_name=node-v11-linux-arm.tar.gz --staged_tarball=build/stage/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz' (1) | |
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:76:29) | |
node-pre-gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) | |
node-pre-gyp ERR! stack at maybeClose (child_process.js:743:16) | |
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:5) | |
node-pre-gyp ERR! System Linux 3.8.13-bone47 | |
node-pre-gyp ERR! command "node" "/var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" | |
node-pre-gyp ERR! cwd /var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport | |
node-pre-gyp ERR! node -v v0.10.25 | |
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.4.6 --major=1 --minor=4 --patch=6 --runtime=node --node_abi=node-v11 --platform=linux --target_platform=linux --arch=arm --target_arch=arm --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/var/lib/cloud9/zetta-fona-bonescript-driver/node_modules/serialport/build/serialport/v1.4.6/Release/node-v11-linux-arm --remote_path=./serialport/v1.4.6/Release/ --package_name=node-v11-linux-arm.tar.gz --staged_tarball=build/stage/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.6/Release/node-v11-linux-arm.tar.gz' (1) | |
npm WARN This failure might be due to the use of legacy binary "node" | |
npm WARN For further explanations, please read | |
/usr/share/doc/nodejs/README.Debian | |
npm ERR! weird error 1 | |
npm ERR! not ok code 0 |
I fixed this by updating the local time on my BBB using the command:
/usr/bin/ntpdate -b -s -u pool.ntp.org
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fixed by issuing the
npm install
command like this: