mac笔记本运行npm install报错gyp ERR! configure error错误解决方法

1850 ℃

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

Vue入门需要掌握哪些知识

el-dialog中获取el-table组件的ref值报undefined错误!

react安装成功运行项目报错怎么办

vue项目因为空格报错怎么解决

vue项目运行报Module build failed: Error: No PostCSS Config错误解决方法

标签: configure, install, npm, 报错

上面是“mac笔记本运行npm install报错gyp ERR! configure error错误解决方法”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。

当前网址:https://m.ipkd.cn/webs_2783.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

java变量有哪些命名规则
wordpress根据tag标签名获取文章列表
js解决前端代码中因引号和空额冲突的解决方法
前端用PHP写简单的删除接口(三)
jquery触发事件focus的运用