Last active
February 18, 2017 17:33
-
-
Save MartinBspheroid/1903afc9bfae5683e290ce16d5f86532 to your computer and use it in GitHub Desktop.
npm i serialport on windows
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
PS C:\Dev\_jsPrototypes\serialPort> npm i serialport --save | |
> [email protected] install C:\Dev\_jsPrototypes\serialPort\node_modules\serialport | |
> node-pre-gyp install --fallback-to-build | |
node-pre-gyp ERR! install error | |
node-pre-gyp ERR! stack Error: Unsupported target version: 0.18.5 | |
node-pre-gyp ERR! stack at get_runtime_abi (C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\node_modules\nod | |
e-pre-gyp\lib\util\versioning.js:156:23) | |
node-pre-gyp ERR! stack at Object.module.exports.evaluate (C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\n | |
ode_modules\node-pre-gyp\lib\util\versioning.js:277:19) | |
node-pre-gyp ERR! stack at install (C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\node_modules\node-pre-gy | |
p\lib\install.js:168:31) | |
node-pre-gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (C:\Dev\_jsPrototypes\serialPort\n | |
ode_modules\serialport\node_modules\node-pre-gyp\lib\node-pre-gyp.js:50:37) | |
node-pre-gyp ERR! stack at run (C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\node_modules\node-pre-gyp\bi | |
n\node-pre-gyp:79:30) | |
node-pre-gyp ERR! stack at Object.<anonymous> (C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\node_modules\ | |
node-pre-gyp\bin\node-pre-gyp:131:1) | |
node-pre-gyp ERR! stack at Module._compile (module.js:570:32) | |
node-pre-gyp ERR! stack at Object.Module._extensions..js (module.js:579:10) | |
node-pre-gyp ERR! stack at Module.load (module.js:487:32) | |
node-pre-gyp ERR! stack at tryModuleLoad (module.js:446:12) | |
node-pre-gyp ERR! System Windows_NT 10.0.14393 | |
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Dev\\_jsPrototypes\\serialPort\\node_modules\\seria | |
lport\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" | |
node-pre-gyp ERR! cwd C:\Dev\_jsPrototypes\serialPort\node_modules\serialport | |
node-pre-gyp ERR! node -v v6.9.5 | |
node-pre-gyp ERR! node-pre-gyp -v v0.6.32 | |
node-pre-gyp ERR! not ok | |
Unsupported target version: 0.18.5 | |
npm WARN enoent ENOENT: no such file or directory, open 'C:\Dev\_jsPrototypes\serialPort\package.json' | |
npm WARN serialPort No description | |
npm WARN serialPort No repository field. | |
npm WARN serialPort No README data | |
npm WARN serialPort No license field. | |
npm WARN Error: EPERM: operation not permitted, scandir 'C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\node_mo | |
dules\node-pre-gyp\node_modules\npmlog\node_modules' | |
npm WARN at Error (native) | |
npm WARN { Error: EPERM: operation not permitted, scandir 'C:\Dev\_jsPrototypes\serialPort\node_modules\serialport\node | |
_modules\node-pre-gyp\node_modules\npmlog\node_modules' | |
npm WARN at Error (native) | |
npm WARN errno: -4048, | |
npm WARN code: 'EPERM', | |
npm WARN syscall: 'scandir', | |
npm WARN path: 'C:\\Dev\\_jsPrototypes\\serialPort\\node_modules\\serialport\\node_modules\\node-pre-gyp\\node_modules | |
\\npmlog\\node_modules' } | |
npm ERR! Windows_NT 10.0.14393 | |
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mblas\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\np | |
m-cli.js" "i" "serialport" "--save" | |
npm ERR! node v6.9.5 | |
npm ERR! npm v4.2.0 | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the [email protected] 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! C:\Users\mblas\AppData\Roaming\npm-cache\_logs\2017-02-18T17_33_01_098Z-debug.log | |
PS C:\Dev\_jsPrototypes\serialPort> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment