Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install 安装依赖包 报错 ,升级最新npm 版本 也报错,不知道怎么回事 #10

Closed
mryangsen opened this issue Nov 10, 2020 · 4 comments

Comments

@mryangsen
Copy link

INFO Starting development server...
ERROR Error: Cannot find module 'vue-loader-v16/package.json'
Require stack:
........
Error: Cannot find module 'vue-loader-v16/package.json'
Require stack:
.....
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! newbee-mall-vue3-app@0.1.0 serve: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the newbee-mall-vue3-app@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Edison_\AppData\Roaming\npm-cache_logs\2020-11-10T03_21_27_855Z-debug.log

@llllllllllx
Copy link

npm i -D vue-loader-v16

@mryangsen
Copy link
Author

mryangsen commented Nov 10, 2020 via email

@Nick930826
Copy link
Collaborator

@mryangsen 我本地 Node 版本是 v12.6.0,npm 版本是 6.9.0。你的版本是否过高,我之前遇到过版本在 14 以上的安装 npm 包会有问题

@Nick930826
Copy link
Collaborator

@mryangsen 遇到新蜂商城,下载安装包报错的情况,解决方案如下:
npm cache clean —force 清理一下
删除 package-lock.json 再重新尝试一下
尽量别用 cnpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants