{{ cat }}'s docs

node.js: 4.0 npm install error


1. npm install Error

npm install
...
gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/fabric-samples/fabcar/node_modules/pkcs11js/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/fabric-samples/fabcar/node_modules/pkcs11js/.node-gyp/6.12.2"
...

解决方法:

npm install --unsafe-perm --verbose

github issue 链接