Skip to content

Return Error when try to run node-pre-gyp #106

Description

@jairorudas
 grpc@1.24.2 install /mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for grpc@1.24.2 and node@10.16.3 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error self signed certificate in certificate chain
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at TLSSocket.onConnectSecure (_tls_wrap.js:1058:34)
gyp ERR! stack     at TLSSocket.emit (events.js:198:13)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:636:8)
gyp ERR! System Linux 4.4.0-43-Microsoft
gyp ERR! command "/home/jairorudas/.nvm/versions/node/v10.16.3/bin/node" "/home/jairorudas/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64"
gyp ERR! cwd /mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/jairorudas/.nvm/versions/node/v10.16.3/bin/node /home/jairorudas/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Linux 4.4.0-43-Microsoft
node-pre-gyp ERR! command "/home/jairorudas/.nvm/versions/node/v10.16.3/bin/node" "/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc
node-pre-gyp ERR! node -v v10.16.3
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! not ok
Failed to execute '/home/jairorudas/.nvm/versions/node/v10.16.3/bin/node /home/jairorudas/.nvm/versions/node/v10.16.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/mnt/c/Users/500401/Documents/firebase/quickstart-nodejs/firestore-emulator/javascript-quickstart/node_modules/grpc/src/node/extension_binary/node-v64-linux-x64-glibc --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm WARN cloud-firestore-emulator-javascript-quickstart@1.0.2 No repository field.
npm WARN cloud-firestore-emulator-javascript-quickstart@1.0.2 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.24.2 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.24.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Activity

  1. Edebo commented on Feb 29, 2020

    @Edebo

    I installed npm install node-pre-gyp -g on the root user.then tried installing npm i firebase again

  2. jamesradford commented on Mar 16, 2020

    @jamesradford

    and? did it fix the problem?

  3. ryanpbrewster commented on Mar 16, 2020

    @ryanpbrewster
    Contributor
    gyp ERR! stack Error: self signed certificate in certificate chain
    

    seems like an issue with your SSL certificates. Is npm able to install anything on your machine (e.g., can you try npm install lodash and see if that also throws the error)? Are you on a network behind a corporate firewall?

  4. jamesradford commented on Mar 16, 2020

    @jamesradford

    i was behind a firewall but I get the same error with or without it

  5. meerkat-citronella commented on Apr 30, 2020

    @meerkat-citronella

    i also have this issue

  6. theogravity commented on Jun 8, 2020

    @theogravity

    I was able to get it to work using node v8. Won't work with v10/v12.

    I did see the certificate chain issue, but it was because I was using the wrong configuration data for the config.js file, which went away when I defined it along with serviceAccountKeys.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions