npm install报错类似于npm WARN tar ENOENT: no such file or directory, open '***\node_modules\.staging\***

报错类似于如下图

解决方法:
删除文件 package-lock.json,再重新执行npm i或者npm install

猜你喜欢

转载自www.cnblogs.com/eyelly/p/npm_error_staging.html