如何修复NPM安装软件包,并返回错误

问题描述 投票:0回答:1

Here's the screenshot of the error

安装(npm init)后,我尝试:

$ npm install express

如果我尝试安装任何其他软件包,也会发生同样的事情。

npm ERR! code UNKNOWN
npm ERR! syscall open
npm ERR! path C:\Users\user\AppData\Roaming\npm-cache\_cacache\index-v5\c3\ae\1314e79200fca71af4663702ee1e676113e408ca8a468a396de5ab6d5d2b
npm ERR! errno -4094
npm ERR! UNKNOWN: unknown error, open 'C:\Users\user\AppData\Roaming\npm-cache\_cacache\index-v5\c3\ae\1314e79200fca71af4663702ee1e676113e408ca8a468a396de5ab6d5d2b'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2020-05-17T17_14_26_890Z-debug.log

此错误可能是什么?

node.js npm install
1个回答
0
投票

某些问题可以通过使用npm cache clean清除缓存来解决。运行此命令,然后重试。如果仍然无法使用,请使用-verbose参数在安装上获取更多输出,以查看更多详细信息。

© www.soinside.com 2019 - 2024. All rights reserved.