-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm ERR! Failed at the pkcs11js@1.0.15 install script. #79
Comments
root@vm10-210-0-10:/opt/gopath/src/github.com/hyperledger/caliper# node-gyp rebuild |
That might help: https://docs.npmjs.com/getting-started/fixing-npm-permissions |
solved : |
I am facing the same issue.. C:\Users\NoorShaik\Downloads\softwares\callforcode\global-citizen\node_modules\pkcs11js>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
root@vm10-210-0-10:/opt/gopath/src/github.com/hyperledger/caliper# node -v
v8.11.2
root@vm10-210-0-10:/opt/gopath/src/github.com/hyperledger/caliper# npm install -g
npm WARN notice [SECURITY] protobufjs has the following vulnerability: 1 moderate. Go here for more details: https://nodesecurity.io/advisories?search=protobufjs&version=5.0.3 - Run
npm i npm@latest -g
to upgrade your npm version, and thennpm audit
to get more info.npm WARN lifecycle grpc@1.10.1~install: cannot run in wd %s %s (wd=%s) grpc@1.10.1 node-pre-gyp install --fallback-to-build --library=static_library /opt/gopath/src/github.com/hyperledger/caliper/node_modules/grpc
added 303 packages in 30.423s
root@vm10-210-0-10:/opt/gopath/src/github.com/hyperledger/caliper# ls
benchmark CONTRIBUTING.md docs LICENSE network node_modules package.json README.md scripts src test
root@vm10-210-0-10:/opt/gopath/src/github.com/hyperledger/caliper# npm install fabric-ca-client@1.1.0 fabric-client@1.1.0
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/nodejs', '/usr/bin/node-gyp', 'rebuild' ]
gyp info using node-gyp@3.0.3
gyp info using node@4.2.6 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb
which
succeeded python2 /usr/bin/python2gyp verb check python version
python2 -c "import platform; print(platform.python_version());"
returned: "2.7.12\n"gyp verb get node dir no --target version specified, falling back to host node version: 4.2.6
gyp verb build dir attempting to create "build" dir: /opt/gopath/src/github.com/hyperledger/caliper/node_modules/dtrace-provider/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/gopath/src/github.com/hyperledger/caliper/node_modules/dtrace-provider/build'
gyp ERR! stack at Error (native)
gyp ERR! System Linux 4.4.0-62-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/gopath/src/github.com/hyperledger/caliper/node_modules/dtrace-provider
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
sh: 1: node: Permission denied
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/nodejs', '/usr/bin/node-gyp', 'rebuild' ]
gyp info using node-gyp@3.0.3
gyp info using node@4.2.6 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb
which
succeeded python2 /usr/bin/python2gyp verb check python version
python2 -c "import platform; print(platform.python_version());"
returned: "2.7.12\n"gyp verb get node dir no --target version specified, falling back to host node version: 4.2.6
gyp verb build dir attempting to create "build" dir: /opt/gopath/src/github.com/hyperledger/caliper/node_modules/pkcs11js/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/opt/gopath/src/github.com/hyperledger/caliper/node_modules/pkcs11js/build'
gyp ERR! stack at Error (native)
gyp ERR! System Linux 4.4.0-62-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/gopath/src/github.com/hyperledger/caliper/node_modules/pkcs11js
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.8.6 (node_modules/dtrace-provider):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.8.6 install:
node-gyp rebuild || node suppress-error.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pkcs11js@1.0.15 install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pkcs11js@1.0.15 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-05-29T02_28_37_750Z-debug.log
root@vm10-210-0-10:/opt/gopath/src/github.com/hyperledger/caliper# node -v
v8.11.2
root@vm10-210-0-10:/opt/gopath/src/github.com/hyperledger/caliper#
The text was updated successfully, but these errors were encountered: