首页 / 浏览问题 / Web / 问题详情
Vue-iClient3D-WebGL下载npm install 装不上依赖
8月9日, 2021
SuperMap/Vue-iClient3D-WebGL下载npm install 装不上依赖包,npm直接报错

npm WARN ancient lockfile
npm WARN ancient lockfile The npm-shrinkwrap.json file was created with an old version of npm,
npm WARN ancient lockfile so supplemental metadata must be fetched from the registry.
npm WARN ancient lockfile
npm WARN ancient lockfile This is a one-time fix-up, please be patient...
npm WARN ancient lockfile
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @supermap/vue-iclient3d-webgl@1.0.7
npm ERR! Found: webpack@3.6.0
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"3.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^4.0.0 || ^5.0.0" from less-loader@7.3.0
npm ERR! node_modules/less-loader
npm ERR!   dev less-loader@"^7.0.0" from the root project
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\npm-cache\_logs\2021-08-09T01_42_40_817Z-debug.log

1个回答

下载less的版本抬高了,先移除之前下载的less,然后再下载指定版本的,之后重启代码,如果还是报错可移除node_modules,重新npm install
卷饼先生  (6,042分)  登峰造极
8月9日, 2021
这个是运行Windows系统和linux系统都可以吗,还是只能在linux系统中运行
...