Error: EACCES: permission denied, mkdir '......node-sass/build'錯誤解決方案

安裝node-sass時出現一下錯誤:node

gyp ERR! configure error npm

gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/zhang/Documents/data_insight_yinzhou/data_insight_yinzhou/node_modules/node-sass/build'sass

gyp ERR! System Darwin 17.6.0post

gyp ERR! command "/usr/local/bin/node" "/Users/zhang/Documents/data_insight_yinzhou/data_insight_yinzhou/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="ui

gyp ERR! cwd /Users/zhang/Documents/data_insight_yinzhou/data_insight_yinzhou/node_modules/node-sassspa

gyp ERR! node -v v10.1.0.net

gyp ERR! node-gyp -v v3.6.2blog

gyp ERR! not ok io

查看資料發現,可能須要增長--unsafe-perm,即class

sudo npm install node-sass --unsafe-perm --save-dev

成功安裝node-sass

 

轉自 https://blog.csdn.net/u010963686/article/details/80675240

相關文章
相關標籤/搜索