mac笔记本运行npm install报错gyp ERR! configure error错误是什么原因,下面编程教程网小编给大家详细介绍一下!
错误提示:
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
以上是编程学习网小编为您介绍的“mac笔记本运行npm install报错gyp ERR! configure error错误解决方法”的全面内容,想了解更多关于 vuejs 内容,请继续关注编程基础学习网。
沃梦达教程
本文标题为:mac笔记本运行npm install报错gyp ERR! configure error错误解决方法


猜你喜欢
- html5标签中有哪些离线存储方式 2024-12-14
- CSS3近阶段篇之酷炫的3D旋转透视 2024-01-06
- 前端实现电子签名(web、移动端)通用的实战过程 2024-01-16
- 如何使用ajax读取Json中的数据 2022-12-28
- vue中使用G2问题汇总 2023-10-08
- 使用vue2.6实现抖音【时间轮盘】屏保效果附源码 2024-01-16
- JavaScript中的Window窗口对象 2023-12-23
- PHP+Ajax+JS实现多图上传 2024-01-16
- 基于Ajax+div的“左边菜单、右边内容”页面效果实现 2023-01-20
- 完美解决ajax访问遇到Session失效的问题 2023-01-20