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

相關文章
相關標籤/搜索