Created
June 1, 2017 13:58
-
-
Save CJ-Davies/b9e8cfd45b216aea9922d9d97225096e to your computer and use it in GitHub Desktop.
This file contains 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
F:\Spatial Flow | |
λ mkdir node && cd n* | |
F:\Spatial Flow\node | |
λ mkdir ArduinoSerial | |
F:\Spatial Flow\node | |
λ cd ArduinoSerial\ | |
F:\Spatial Flow\node\ArduinoSerial | |
λ npm init | |
This utility will walk you through creating a package.json file. | |
It only covers the most common items, and tries to guess sensible defaults. | |
See `npm help json` for definitive documentation on these fields | |
and exactly what they do. | |
Use `npm install <pkg> --save` afterwards to install a package and | |
save it as a dependency in the package.json file. | |
Press ^C at any time to quit. | |
package name: (arduinoserial) | |
version: (1.0.0) | |
description: Simple test for communicating with an Arduino via serial port. | |
entry point: (index.js) | |
test command: | |
git repository: | |
keywords: | |
author: CJ Davies | |
license: (ISC) | |
About to write to F:\Spatial Flow\node\ArduinoSerial\package.json: | |
{ | |
"name": "arduinoserial", | |
"version": "1.0.0", | |
"description": "Simple test for communicating with an Arduino via serial port.", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "CJ Davies", | |
"license": "ISC" | |
} | |
Is this ok? (yes) | |
F:\Spatial Flow\node\ArduinoSerial (arduinoserial@1.0.0) | |
λ ls | |
package.json | |
F:\Spatial Flow\node\ArduinoSerial (arduinoserial@1.0.0) | |
λ npm install serialport | |
> serialport@4.0.7 install F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport | |
> node-pre-gyp install --fallback-to-build | |
node-pre-gyp info it worked if it ends with ok | |
node-pre-gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe', | |
node-pre-gyp verb cli 'F:\\Spatial Flow\\node\\ArduinoSerial\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp', | |
node-pre-gyp verb cli 'install', | |
node-pre-gyp verb cli '--fallback-to-build' ] | |
node-pre-gyp info using node-pre-gyp@0.6.32 | |
node-pre-gyp info using node@8.0.0 | win32 | x64 | |
node-pre-gyp verb command install [] | |
node-pre-gyp info check checked for "F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release\serialport.node" (not found) | |
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-win32-x64.tar.gz | |
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-win32-x64.tar.gz | |
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v57-win32-x64.tar.gz | |
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@8.0.0 (node-v57 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.7/serialport-v4.0.7-node-v57-win32-x64.tar.gz | |
node-pre-gyp verb command build [ 'rebuild' ] | |
F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" clean ) else (node "" clean ) | |
F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build "--module=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release\serialport.node" --module_name=serialport "--module_path=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release" ) else (node "" configure --fallback-to-build "--module=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release\serialport.node" --module_name=serialport "--module_path=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release" ) | |
gyp ERR! configure error | |
gyp ERR! stack Error: Can't find Python executable "C:\Python\Python36\python.EXE", you can set the PYTHON env variable.gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19) | |
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16) | |
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29 | |
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21) | |
gyp ERR! System Windows_NT 10.0.15063 | |
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=F:\\Spatial Flow\\node\\ArduinoSerial\\node_modules\\serialport\\build\\Release\\serialport.node" "--module_name=serialport" "--module_path=F:\\Spatial Flow\\node\\ArduinoSerial\\node_modules\\serialport\\build\\Release" | |
gyp ERR! cwd F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport | |
gyp ERR! node -v v8.0.0 | |
gyp ERR! node-gyp -v v3.6.1 | |
gyp ERR! not ok | |
node-pre-gyp ERR! build error | |
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release' (1) | |
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29) | |
node-pre-gyp ERR! stack at emitTwo (events.js:125:13) | |
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:213:7) | |
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:887:16) | |
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5) | |
node-pre-gyp ERR! System Windows_NT 10.0.15063 | |
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "F:\\Spatial Flow\\node\\ArduinoSerial\\node_modules\\serialport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" | |
node-pre-gyp ERR! cwd F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport | |
node-pre-gyp ERR! node -v v8.0.0 | |
node-pre-gyp ERR! node-pre-gyp -v v0.6.32 | |
node-pre-gyp ERR! not ok | |
Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\build\Release' (1) | |
npm WARN Error: EPERM: operation not permitted, scandir 'F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\node_modules\node-pre-gyp\node_modules\nopt\node_modules' | |
npm WARN { Error: EPERM: operation not permitted, scandir 'F:\Spatial Flow\node\ArduinoSerial\node_modules\serialport\node_modules\node-pre-gyp\node_modules\nopt\node_modules' | |
npm WARN errno: -4048, | |
npm WARN code: 'EPERM', | |
npm WARN syscall: 'scandir', | |
npm WARN path: 'F:\\Spatial Flow\\node\\ArduinoSerial\\node_modules\\serialport\\node_modules\\node-pre-gyp\\node_modules\\nopt\\node_modules' } | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! serialport@4.0.7 install: `node-pre-gyp install --fallback-to-build` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the serialport@4.0.7 install script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! C:\Users\CJ\AppData\Roaming\npm-cache\_logs\2017-06-01T13_57_34_936Z-debug.log | |
F:\Spatial Flow\node\ArduinoSerial (arduinoserial@1.0.0) | |
λ npm -v | |
5.0.1 | |
F:\Spatial Flow\node\ArduinoSerial (arduinoserial@1.0.0) | |
λ node -v | |
v8.0.0 | |
F:\Spatial Flow\node\ArduinoSerial (arduinoserial@1.0.0) | |
λ uname -a | |
windows32 volca 2.6.2 9200 i686-pc Intel unknown MinGW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment