80 Star 793 Fork 709

悟空CRM / 72crm-11.0-web(JAVA版)

 / 详情

npm install 报错

待办的
创建于  
2022-10-12 12:02

PS C:\Users\lenovo\Desktop\W72crm_web> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: 5kcrm@11.0.0
npm ERR! Found: vue@2.5.17
npm ERR! node_modules/vue
npm ERR! vue@"2.5.17" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.6.0" from @chenfengyuan/vue-qrcode@1.0.2
npm ERR! node_modules/@chenfengyuan/vue-qrcode
npm ERR! @chenfengyuan/vue-qrcode@"^1.0.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\lenovo\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Local

评论 (4)

抬头比低头好 创建了任务

npm 按照这个版本下载 npm i -d webpack@4.16.5
npm i -d webpack-bundle-analyzer@2.13.1
npm i -d webpack-cli@3.1.0
npm i -d webpack-dev-server@3.1.5
npm i -d webpack-merge@4.1.4

说一下我成功跑起来的步骤:
安装nvm
安装node 8.17.0
切换镜像源 npm config set registry http://registry.npm.taobao.org
npm install
npm run dev

我安装时使用的node版本是8.17.0, npm install后出现关于node-sass找不到相关源的问题;
以下是报错信息:
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.14.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决:
设置node-sass镜像源: npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
重新 npm install 无错误
npm run dev 正常启动项目

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(5)
1581633 haikuotiankongben 1578955117
JavaScript
1
https://gitee.com/wukongcrm/W72crm_web.git
git@gitee.com:wukongcrm/W72crm_web.git
wukongcrm
W72crm_web
72crm-11.0-web(JAVA版)

搜索帮助