npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path "user"\AppData\Roaming\npm\node_modules\.staging\js2cp-28011c0d\node_modules\fs-extra
npm ERR! dest "user"\AppData\Roaming\npm\node_modules\.staging\fs-extra-d19736e5
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename '"user"\AppData\Roaming\npm\node_modules\.staging\js2cp-28011c0d\node_modules\fs-extra' -> '"user"\AppData\Roaming\npm\node_modules\.staging\fs-extra-d19736e5'
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! "user"\AppData\Roaming\npm-cache\_logs\2021-07-27T07_39_50_112Z-debug.log
这个问题应该是npm 程序相关记录错误,在网上搜索 基本有连个解决方法
1,删除 package-lock.json 文件
2,打开users目录下边AppData\Roaming目录找到npm文件夹和npm-cache文件夹,删除这两个文件夹里边的所有内容。
但是这个两方法 对我都是无效的。
3,因为是程序配置文件错乱的问题,所以我尝试把node.js卸载后重新安装,问题解决!!!!!!!
参考:vue安装npm时遇到npm ERR! syscall rename,,npm ERR! errno -4058错误解决办法_极端~的博客-CSDN博客