node js 安装.node-gyp/8.9.4 权限 没法访问

WARN EACCES user "root" does not have permission to access the dev dir "/root/.jenkins/workspace/cas-psma-code/node_modules/node-sass/.node-gyp/8.9.4"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/root/.jenkins/workspace/cas-psma-code/node_modules/node-sass/.node-gyp"

解决方法:npm install time   -g --unsafe-perm node

相关文章
相关标签/搜索