question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install grpc@1.10.1 ERR

See original GitHub issue

` [root@llhl178 caliper]# npm install grpc@1.10.1 npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ECONNREFUSED: request to https://registry.npmjs.org/decamelize failed, reason: connect ECONNREFUSED 104.18.96.96:443 npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

grpc@1.10.1 install /opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Pre-built binaries not installable for grpc@1.10.1 and node@8.11.3 (node-v57 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp ERR! Hit error EACCES: permission denied, mkdir ‘/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/src/node’ gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/build’ gyp ERR! System Linux 4.17.6-1.el7.elrepo.x86_64 gyp ERR! command “/usr/local/node-v8.11.3-linux-x64/bin/node” “/usr/local/node-v8.11.3-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “–fallback-to-build” “–library=static_library” “–module=/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node” “–module_name=grpc_node” “–module_path=/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc” gyp ERR! cwd /opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc gyp ERR! node -v v8.11.3 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 ‘/usr/local/node-v8.11.3-linux-x64/bin/node /usr/local/node-v8.11.3-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:126:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) node-pre-gyp ERR! System Linux 4.17.6-1.el7.elrepo.x86_64 node-pre-gyp ERR! command “/usr/local/node-v8.11.3-linux-x64/bin/node” “/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build” “–library=static_library” node-pre-gyp ERR! cwd /opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc node-pre-gyp ERR! node -v v8.11.3 node-pre-gyp ERR! node-pre-gyp -v v0.7.0 node-pre-gyp ERR! not ok Failed to execute ‘/usr/local/node-v8.11.3-linux-x64/bin/node /usr/local/node-v8.11.3-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --library=static_library --module=/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64-glibc’ (1) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.10.1 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.10.1 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: npm ERR! /root/.npm/_logs/2018-07-18T03_01_41_563Z-debug.log `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
aklenikcommented, Oct 10, 2018

@gongchuanhua My experience is that it’s simpler to install local packages as a non-root user. Way less headache (and no need for root privileges anyway):

git clone https://github.com/hyperledger/caliper.git
cd caliper
npm install
npm install grpc@1.10.1 fabric-ca-client@1.1.0 fabric-client@1.1.0
2reactions
ishandutta2007commented, Nov 16, 2019

I needed to downgrade node from 10.12 to 8.11

node -v

v10.12.0

npm install -g n
n 8.11.1
mode -v

v8.11.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pre-built binaries not found for grpc@1.10.1 and node@10.9.0
The error message in the question indicates that the failure occurs when installing gRPC as a dependency of @firebase/firestore .
Read more >
npm ERR! Failed at the grpc@1.24.0 install script. #1183
I got similar error for installing grpc@1.24.0 during npm install --save firebase . I just upgrade NodeJS version from v8* to latest v10...
Read more >
grpc - npm
Install · Repository · Homepage · Weekly Downloads · Version · License · Unpacked Size · Total Files.
Read more >
npm install grpc fail - Google Groups
I am trying to install grpc with npm but I get this log. ... npm ERR! argv "node" "/usr/local/bin/npm" "install" "grpc" ... npm...
Read more >
NPM install error - Material Design for Bootstrap
p>Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found