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错误解决方法
基础教程推荐
猜你喜欢
- 前端(HTML)+后端(Django)+数据库(MySQL):用户注册及登录演示 2023-10-25
- CSS 模拟float实现center文字左右环绕图片的效果 2024-01-09
- JavaScript 模块化详解 2023-08-11
- html,css基础(3)~长度单位,元素阴影,表单元素,响应式布局 2023-10-26
- ionic实现滑动的三种方式 2024-01-17
- jquery animate实现鼠标放上去显示离开隐藏效果 2024-01-09
- CSS3实现动态翻牌效果 仿百度贴吧3D翻牌一次动画特效 2022-11-16
- 定时器setTimeout和vue函数$nextTick有什么区别 2025-01-14
- vue解决跨域问题 2023-10-08
- Ajax异步加载解析 2023-01-21
