Skip to content

前端npm install之后一直转圈 #36

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

Open
M-oon-S-hadow opened this issue Mar 25, 2025 · 1 comment
Open

前端npm install之后一直转圈 #36

M-oon-S-hadow opened this issue Mar 25, 2025 · 1 comment

Comments

@M-oon-S-hadow
Copy link

现象描述:
1.前端npm install之后一直转圈,根目录下也生成node_modules了,但是缺内容(正常是382M,一直转圈缺内容安装后的大概是320M多一点)
2.因为一直转圈,所以cmd关了重新进cmd,直接执行run serve看看报错显示是啥,
缺德内容大概如下:1.显示报缺vite-plugin-components,cmd走脚本npm i vite-plugin-components后也还是转圈,安装后不缺这个了,,缺2
2.显示报缺@nodelib/fs.walk,cmd走脚本npm i @nodelib/fs.walk一样转圈,而且在run serve显示还是缺这个组件

解决办法:之前安装了yarn,直接用yarn 安装好使了

PS:
1.百度上说的走淘宝镜像,或者force清理后再重新安装都不行
2. npm的 vite-plugin-components 只支持到0.13.3,后续0.14.0改名叫unplugin-vue-components,不清楚是不是这个原因造成的
对应该问题官网网址 https://www.npmjs.com/package/vite-plugin-components

@yanghuazzg
Copy link

用 pnpm 还挺快的

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

2 participants