小编Atz*_*uki的帖子

npm 错误!代码 ENOENT npm 错误!系统调用重命名

就像一周前一样,我通过命令 npm i -g path 安装了全局本地包。从今天开始一切正常。我尝试再次使用 npm i -g path 并收到此错误:

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
Run Code Online (Sandbox Code Playgroud)

我想进入“user”\AppData\Roaming\npm\node_modules\ 但我无法在node_modules 文件夹中找到文件夹./.staging。 …

javascript node.js npm

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

javascript ×1

node.js ×1

npm ×1