2024年09月28日 建站教程
mac笔记本运行npm install报错gyp ERR! configure error错误是什么原因,下面web建站小编给大家详细介绍一下!
错误提示:
gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/var/www/project_name/node_modules/node-sass/build' gyp ERR! System Linux 4.4.0-1065-aws gyp ERR! command "/usr/local/bin/node" "/var/www/project_name/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "-libsass_library=" gyp ERR! cwd /var/www/front-stormsensor/node_modules/node-sass gyp ERR! node -v v8.11.4 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1
解决方法:
sudo npm i --unsafe-perm
本文链接:http://so.lmcjl.com/news/14129/