Grpc: Error Install firebase

Created on 16 May 2018  Â·  3Comments  Â·  Source: grpc/grpc

node-pre-gyp

Reactjs

What operating system (Linux, Windows, …) and version?

Windows 10

What runtime / compiler are you using (e.g. python version or version of gcc)

reactjs

What did you do?

If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.

What did you expect to see?

installed several packages

What did you see instead?

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. (C:UsersIan NalyanyaDesktopnodejsmaformu-reactmaformunode_modulesgrpcnode_modulesnode-pre-gyplibutilcompile.js:83:29)
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).

Anything else we should know about your project / environment?

I want to install firebase from npm
untitled

Most helpful comment

Workaround - add resolutions section to your package.json and install with yarn.

  ...
  "dependencies": {
    "firebase": "^5.0.2"
  },
  "resolutions": {
    "grpc": "^1.12.0"
  }
  ...

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Anorionil picture Anorionil  Â·  3Comments

draft6 picture draft6  Â·  3Comments

mlstudies picture mlstudies  Â·  3Comments

juanjux picture juanjux  Â·  3Comments

qiuxin picture qiuxin  Â·  3Comments