无论我尝试安装什么模块,我都会收到以下错误。
npm ERR! path /home/ubuntu/server/node_modules/node-libcurl/node_modules/abbrev
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/home/ubuntu/server/node_modules/node-libcurl/node_modules/abbrev' -> '/home/ubuntu/spryfit-server/node_modules/node-libcurl/node_modules/.abbrev.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
我真的不知道为什么它一直在发生,我试图将abbrev
模块安装在 node-libcurl 目录中。我发现每次运行时都会自动删除 node-libcurl 中的依赖项npm install
。从来没有发生过这种情况,我该怎么办?