dependencie not found & Error from chokidar (D:\): Error: EBUSY: resource busy or locked, lstat

运行vscode的时候,报错如下

 ERROR  Failed to compile with 45 errors                                                                                                                       
These dependencies were not found:

* @vue/composition-api/dist/vue-composition-api.mjs in ./node_modules/vue-demi/lib/index.mjs
* @vue/shared in ./node_modules/element-plus/es/components/autocomplete/src/autocomplete3.mjs, ./node_modules/element-plus/es/components/checkbox/src/checkbox3.mjs and 42 others

To install them, you can run: npm install --save @vue/composition-api/dist/vue-composition-api.mjs @vue/shared
Error from chokidar (D:\): Error: EBUSY: resource busy or locked, lstat 'D:\pagefile.sys'

试过删除node_modules重下依赖,没用
从另一篇博客得到了灵感

https://blog.csdn.net/lorogy/article/details/117019359

也就是说,版本不兼容问题。。
我那个项目用的是vue2,但是用了element-plus(vue3)
解决办法也很明显了

项目下
把element-plus卸载,
下载element-ui,
main.js把element-plus的导入引用改为element-ui的导入引用

重新运行项目,成功了

猜你喜欢

转载自blog.csdn.net/weixin_50624398/article/details/124971260