npm install 报错 gyp info it worked if it ends with ok
npm install 报错 gyp info it worked if it ends with ok
clone下来的 vue 项目 npm install 报错
报错日志片段截取如下:
这里看到报错信息第二行是关于 node-sass 的问题
看网上很多说是 node-sass 版本冲突
解决方法:cmd 进入项目根目录,安装指定版本 node-sass
// 先卸载 node-sass
npm uninstall node-sass
// 安装指定版本 node-sass
npm install node-sass@6.0.0
我这里安装成功,如果还是存在版本冲突,可以依次降低版本尝试5.0.0和4.13.0。然后就按照步骤运行项目
// 安装项目依赖的相关组件
npm install
// npm 编译打包
npm run build
// 启动项目
npm run dev
至此,问题解决。
注意:clone 下来的项目一般会 gitignore 依赖组件,所以我们 clone 下来的 vue 项目一般是没有node_modules文件夹的。在运行项目的过程中应当注意,如果出现报错,就重新安装依赖组件。
npm install 报错 gyp info it worked if it ends with ok相关推荐
- npm install 报错 gyp info it worked if it ends with ok npm ERR! gyp verb cli [
今天新启动一个项目,在 npm install 安装依赖项时出现报错. ERR! code 1 npm ERR! path C:\Users\Administrator\Desktop\14531\m ...
- npm install 报错 gyp info it worked if it ends with ok npm ERR gyp verb cli [
今天新启动一个项目,在 npm install 安装依赖项时出现报错. ERR! code 1 npm ERR! path C:UsersAdministratorDesktope31mall-adm ...
- npm install安装报错 gyp info it worked if it ends with ok
前端vue新项目 npm install安装报错 gyp info it worked if it ends with ok 1.可能原因1:node和node-sass版本冲突, 对应的node和n ...
- 【npm 报错 gyp info it worked if it ends with ok 大概率是包版本问题】
node/ node-sass/sass-loader版本兼容问题 问题描述:之前的项目在新电脑上运行时,因为node版本过高,运行npm报错 npm ERR! gyp info it worked ...
- 奇葩问题☞ npm install 报错 gyp ERR
gyp ERR! node -v v16.13.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok 直接看图吧,咱也是第一次遇见这种错误,怎么办!!! 于是百度 ...
- 奇葩问题 npm install 报错 gyp ERR
gyp ERR! node -v v16.13.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok 直接看图吧,咱也是第一次遇见这种错误,怎么办!!! 于是百度 ...
- npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass错误解决/npm ERR! gyp verb `which
一.问题描述: npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass 二.可能原因 nodejs与sass版本不匹配 ...
- npm install 报错:ERR! code EINTEGRITY 解决方案
npm install 报错:ERR! code EINTEGRITY 解决方案 参考文章: (1)npm install 报错:ERR! code EINTEGRITY 解决方案 (2)https: ...
- npm install 报错: WARN checkPermissions Missing write access to 解决方案
npm install 报错: WARN checkPermissions Missing write access to 解决方案 参考文章: (1)npm install 报错: WARN che ...
- npm install 报错 npm WARN tar ENOENT: no such file or directory, open... 解决方式
报错信息 npm install 报错 npm WARN tar ENOENT: no such file or directory, open- 解决方式 使用cnpm install
最新文章
- Python_note7 文件和数据格式化+wordcloud库
- Android性能优化面试题集锦,终局之战
- Java虚拟机组成详解
- 2021年自驾游数据报告
- 通过Git进行分支管理
- mysql:赋予用户权限、查看及修改端口号
- caffe---验证码识别
- 解决Mac系统finder卡顿转菊花的问题
- BZOJ4033 [HAOI2015]树上染色 【树形dp】
- 数据库在什么情况下适合添加索引
- U盘因为有写保护,不能格式化,该怎么办
- 如何用excel做正交分析_利用Excel进行正交设计及分析
- 微信认证小程序如何绑定微信支付商户平台
- 从源码角度深入理解iScroll中的scrollbars和indicators配置
- ubuntu上使用certbot安装ssl证书到nginx
- OpenGL纹理过滤以及纹理Wrapping mode
- EasyAR 插件使用简介
- 基于RTP协议的IP电话QoS监测及提高策略
- 手把手教你拿到小世界里妹子的 QQ 号 !
- 中控打卡机二次开发注册控件问题