错误的ERR! addLocal无法在Windows 7上安装错误

时间:2016-04-06 04:26:11

标签: node.js git npm npm-install package.json

我试图在我的项目根目录npm install上找到package.json文件。我希望安装package.json的依赖项中有一个git模块。

我安装了npm版本3.8.5

当我运行npm install时,我收到以下错误:

npm ERR! addLocal Could not install C:\Users\<username>\npm-global\Temp\npm-16864-a5deb5d4\git-cache-e02b7085\
ed488e2db50edd81e6db23865772ae34d4e446c5
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\<some-folder-path>\\nodejs\\node.exe" "C:\\<some-folder-path>\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.4.2
npm ERR! npm  v3.8.5
npm ERR! path C:\Users\<username>\AppData\Roaming\npm-cache\<module-name>\0.0.2\package.tgz
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall scandir

npm ERR! enoent ENOENT: no such file or directory, scandir 'C:\Users\<username>\AppData\Roaming\npm-cache\ute-
gulp-tasks\0.0.2\package.tgz'
npm ERR! enoent ENOENT: no such file or directory, scandir 'C:\Users\<username>\AppData\Roaming\npm-cache\<module-name>\0.0.2\package.tgz'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

我可以看到为错误npm ERR创建的文件! C:\Users\<username>\npm-global\Temp\npm-16864-a5deb5d4\git-cache-e02b7085\ ed488e2db50edd81e6db23865772ae34d4e446c5

C:\Users\<username>\AppData\Roaming\npm-cache\<module-name>\0.0.2\package.tgz

但由于某种原因,npm无法访问它。

不幸的是,我无法在任何地方找到解决此问题的方法。

如果有人可以帮助我,那就太好了!

提前致谢!

0 个答案:

没有答案
相关问题