Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install --save serialport #223

Open
Alekhyakompalli opened this issue Jun 3, 2017 · 0 comments
Open

npm install --save serialport #223

Alekhyakompalli opened this issue Jun 3, 2017 · 0 comments

Comments

@Alekhyakompalli
Copy link

Please help me in solving this problem.. i have verified many solutions to rectify this particular one, but unfortunately i am unable to get it
npm install --save serialport

[email protected] install C:\Users\HP\myapp\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 'C:\Users\HP\myapp\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 [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "C:\Users\HP\myapp\node_modules\serialport\build\serialport\v1.4.10\Release\node-v57-win32-x64\serialport.node" (not found)
node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v57-win32-x64.tar.gz
node-pre-gyp http 404 https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v57-win32-x64.tar.gz
node-pre-gyp http Pre-built binary not available for your system (falling back to source compile with node-gyp)
node-pre-gyp verb command build [ 'rebuild' ]
(node:8932) [DEP0006] DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.

C:\Users\HP\myapp\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" rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.10 --major=1 --minor=4 --patch=10 --runtime=node --node_abi=node-v57 --platform=win32 --target_platform=win32 --arch=x64 --target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=C:\Users\HP\myapp\node_modules\serialport\build\serialport\v1.4.10\Release\node-v57-win32-x64 --remote_path=./serialport/v1.4.10/Release/ --package_name=node-v57-win32-x64.tar.gz --staged_tarball=build\stage\serialport\v1.4.10\Release\node-v57-win32-x64.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v57-win32-x64.tar.gz ) else (node "" rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.10 --major=1 --minor=4 --patch=10 --runtime=node --node_abi=node-v57 --platform=win32 --target_platform=win32 --arch=x64 --target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=C:\Users\HP\myapp\node_modules\serialport\build\serialport\v1.4.10\Release\node-v57-win32-x64 --remote_path=./serialport/v1.4.10/Release/ --package_name=node-v57-win32-x64.tar.gz --staged_tarball=build\stage\serialport\v1.4.10\Release\node-v57-win32-x64.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v57-win32-x64.tar.gz )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Users\HP\Python 3.6", 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. (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.10240
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--name=serialport" "--configuration=Release" "--module_name=serialport" "--version=1.4.10" "--major=1" "--minor=4" "--patch=10" "--runtime=node" "--node_abi=node-v57" "--platform=win32" "--target_platform=win32" "--arch=x64" "--target_arch=x64" "--module_main=./serialport" "--host=https://node-serialport.s3.amazonaws.com/" "--module_path=C:\Users\HP\myapp\node_modules\serialport\build\serialport\v1.4.10\Release\node-v57-win32-x64" "--remote_path=./serialport/v1.4.10/Release/" "--package_name=node-v57-win32-x64.tar.gz" "--staged_tarball=build\stage\serialport\v1.4.10\Release\node-v57-win32-x64.tar.gz" "--hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/" "--hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v57-win32-x64.tar.gz"
gyp ERR! cwd C:\Users\HP\myapp\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 rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.10 --major=1 --minor=4 --patch=10 --runtime=node --node_abi=node-v57 --platform=win32 --target_platform=win32 --arch=x64 --target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=C:\Users\HP\myapp\node_modules\serialport\build\serialport\v1.4.10\Release\node-v57-win32-x64 --remote_path=./serialport/v1.4.10/Release/ --package_name=node-v57-win32-x64.tar.gz --staged_tarball=build\stage\serialport\v1.4.10\Release\node-v57-win32-x64.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v57-win32-x64.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\HP\myapp\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:76: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.10240
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\HP\myapp\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\HP\myapp\node_modules\serialport
node-pre-gyp ERR! node -v v8.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.5.19
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp.cmd rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.10 --major=1 --minor=4 --patch=10 --runtime=node --node_abi=node-v57 --platform=win32 --target_platform=win32 --arch=x64 --target_arch=x64 --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=C:\Users\HP\myapp\node_modules\serialport\build\serialport\v1.4.10\Release\node-v57-win32-x64 --remote_path=./serialport/v1.4.10/Release/ --package_name=node-v57-win32-x64.tar.gz --staged_tarball=build\stage\serialport\v1.4.10\Release\node-v57-win32-x64.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.10/Release/node-v57-win32-x64.tar.gz' (1)
npm ERR! Cannot read property 'type' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache_logs\2017-06-03T06_31_46_236Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant