Here's the screenshot of the error
安装($ 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
如果我尝试安装其他任何软件包,也会发生同样的事情。
select *
from table
where var1 <> 'a' and var2 = 'b' and var3 = 'c' and var4 = 'd'
该错误可能是什么?
答案 0 :(得分:0)
某些问题可以通过使用npm cache clean
清除缓存来解决。
运行此命令,然后重试。如果仍然无法使用,请使用-verbose参数在安装上获取更多输出,以查看更多详细信息。
答案 1 :(得分:0)
删除以下目录并重试npm update。它对我有用。
C:\Users\user\AppData\Roaming\npm-cache