Tools, FAQ, Tutorials:
"gyp ERR! stack Error: EACCES: permission denied"
Why am I getting the "gyp ERR! stack Error: EACCES: permission denied" error when installing Hyplerledger Composer REST API Server?
✍: FYIcenter.com
You may get the "gyp ERR! stack Error: EACCES: permission denied" error,
when using older version of "npm" to install Hyplerledger Composer REST API server:
$ sudo npm install -g composer-rest-server@0.20 ... gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/composer-rest-server/node_modules/pkcs11js/.node-gyp' gyp ERR! System Linux 4.15.0-1037-azure gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/composer-rest-server/node_modules/pkcs11js gyp ERR! node -v v8.10.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! pkcs11js@1.0.17 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the pkcs11js@1.0.17 install script.
What you can do is to try it again with the "--unsafe-perm=true" option:
$ sudo npm install -g composer-rest-server --unsafe-perm=true
⇒ Explorer Hyplerledger Composer Environment
⇐ Issue to Install "npm 5.x" on Ubuntu 18
2019-04-25, 286👍, 0💬
Popular Posts:
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to lo...
What Is an HTML http-equiv "meta" Tag/Element? a http-equiv "meta" element is a special "meta" eleme...
Where to find tutorials on Python programming language? I want to learn Python. Here is a large coll...
Where to find tutorials on Using Azure API Management Developer Portal? Here is a list of tutorials ...
What is Azure API Management Gateway? Azure API Management Gateway is the Azure Web server that serv...