grpc-node: Error installing on Windows 10
Problem description
Error installing on Windows 10 with npm or yarn I know this issue has been mentionned many time here and marked as closed, but it s not fixed on our windows 10 build machine so opening a new issue .
Reproduction steps
start a new node.js project npm init npm install grpc --save
node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(500): https://node-precompiled-binaries.grpc.io/grpc/v1.18.0/node-v64-win32-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for grpc@1.18.0 and node@10.15.1 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\myuser\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\myuser\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\nod
e-gyp.js” “build” “–fallback-to-build” “–library=static_library” “–module=C:\Users\myuser\Desktop\firebasetest\node_modules\grpc\src\node
\extension_binary\node-v64-win32-x64-unknown\grpc_node.node” “–module_name=grpc_node” “–module_path=C:\Users\myuser\Desktop\firebasetest\nod
e_modules\grpc\src\node\extension_binary\node-v64-win32-x64-unknown” “–napi_version=3” “–node_abi_napi=napi” “–napi_build_version=0” “–node_n
api_label=node-v64”
gyp ERR! cwd C:\Users\myuser\Desktop\firebasetest\node_modules\grpc
gyp ERR! node -v v10.15.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Environment
- windows 10
- node 10.15.1
- node installed via https://nodejs.org/en/
- microsoft visual studio 2015 installed (14.0.25420.10 update 3)
- python 2.7 ( r27:82525)
- grpc@1.18.0
Additional context
I am behind a corporate proxy , but everything is configured to run smoothly with npm as it s centric in our pipeline
npm config get
; cli configs metrics-registry = “https://registry.npmjs.org/” scope = “” user-agent = “npm/6.7.0 node/v10.15.1 win32 x64”
; userconfig C:\Users\myuser.npmrc color = true http-*proxy = “http://proxy.mycompany.org:3128/” http-proxy = “http://proxy.mycompany.org:3128/” https-proxy = “http://proxy.mycompany.org:3128/” msvs_version = “2015” proxy = “http://proxy.mycompany.org:3128/” registry = “https://registry.npmjs.org/” strict-ssl = false
; builtin config undefined prefix = “C:\Users\myuser\AppData\Roaming\npm”
; node bin location = C:\Program Files\nodejs\node.exe ; cwd = C:\Users\myuser\Desktop\firebasetest ; HOME = C:\Users\myuser ; “npm config ls -l” to show all defaults.
I tried to install node-pre-gyp as global , npm cache clean --force , but the issue is still present. pre compiled binaries cannot be found, and compilation failed
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (7 by maintainers)
npm i -g node-gyp
work for megrpc 1.10 is old enough that it probably doesn’t work with Node 12. The latest version of grpc is 1.24.2. I suggest using that instead.