安装 npm i element-ui -S 遇到的坑

 no such file or directory, rename 'D:\myvue06\node_modules\babel-runtime\node_modules\core-js' -> 'D:\myvue06\node_modules\babel-runtime\node_modules\.core-js.DELETE'

npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path D:\myvue06\node_modules\babel-runtime\node_modules\core-js
npm ERR! dest D:\myvue06\node_modules\babel-runtime\node_modules\.core-js.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\myvue06\node_modules\babel-runtime\node_modules\core-js' -> 'D:\myvue06\node_modules\babel-runtime\node_modules\.core-js.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\nodejs\node_cache\_logs\2021-10-29T02_14_54_027Z-debug.log

 安装 npm i element-ui -S 遇到的坑

 

网上找了很多办法,清理缓存、删除node_module等等  都不行。

我没有通过vs code 终端安装,使用cmd 管理员身份运行安装就可以。神奇!!!

上一篇:Hive安装及配置Mysql元数据库


下一篇:nrm报错 [ERR_INVALID_ARG_TYPE]