node-pre-gyp
Reactjs
Windows 10
reactjs
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.
installed several packages
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:Program Filesnodejsnode_modulesnpmnode_modulesnode-gyplibbuild.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=C:\Users\Ian Nalyanya\Desktop\nodejs\maformu-react\maformu\node_modules\grpc\src\node\extension_binary\node-v64-win32-x64-unknown\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\Users\Ian Nalyanya\Desktop\nodejs\maformu-react\maformu\node_modules\grpc\src\node\extension_binary\node-v64-win32-x64-unknown"
gyp ERR! cwd C:UsersIan NalyanyaDesktopnodejsmaformu-reactmaformunode_modulesgrpc
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --library=static_library --module=C:UsersIan NalyanyaDesktopnodejsmaformu-reactmaformunode_modulesgrpcsrcnodeextension_binarynode-v64-win32-x64-unknowngrpc_node.node --module_name=grpc_node --module_path=C:UsersIan NalyanyaDesktopnodejsmaformu-reactmaformunode_modulesgrpcsrcnodeextension_binarynode-v64-win32-x64-unknown' (1)
node-pre-gyp ERR! stack at ChildProcess.
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:947:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Ian Nalyanya\Desktop\nodejs\maformu-react\maformu\node_modules\grpc\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd C:UsersIan NalyanyaDesktopnodejsmaformu-reactmaformunode_modulesgrpc
node-pre-gyp ERR! node -v v10.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.7.0
node-pre-gyp ERR! not ok
Failed to execute 'C:Program Filesnodejsnode.exe C:Program Filesnodejsnode_modulesnpmnode_modulesnode-gypbinnode-gyp.js build --fallback-to-build --library=static_library --module=C:UsersIan NalyanyaDesktopnodejsmaformu-reactmaformunode_modulesgrpcsrcnodeextension_binarynode-v64-win32-x64-unknowngrpc_node.node --module_name=grpc_node --module_path=C:UsersIan NalyanyaDesktopnodejsmaformu-reactmaformunode_modulesgrpcsrcnodeextension_binarynode-v64-win32-x64-unknown' (1)
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] || 0.14.x || ^15.0.0-0 || 15.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^15.4.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of firebase@^3.6.1 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
I want to install firebase from npm
grpc 1.10 does not support Node 10. Solving this will either require you to switch to an older version of Node, or require Firebase to upgrade to grpc 1.11.
Workaround - add resolutions
section to your package.json
and install with yarn.
...
"dependencies": {
"firebase": "^5.0.2"
},
"resolutions": {
"grpc": "^1.12.0"
}
...
You don't want to try to resolve to 1.12 yet, because we had to unpublish it. but ^1.11.0
should be good enough here.
Most helpful comment
Workaround - add
resolutions
section to yourpackage.json
and install with yarn.