node.js - 'npm cache clean' 不作为 IDE 工作 Angular VS 代码

标签 node.js angular npm

npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. npm ERR! npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\janak\AppData\Roaming\npm-cache_logs\2017-08-11T04_38_31_995Z-debug.log

最佳答案

使用 --force 运行命令:

npm cache clean --force

基于 npm documentation :

it should never be necessary to clear the cache for any reason other than reclaiming disk space, thus why clean now requires --force to run.

关于node.js - 'npm cache clean' 不作为 IDE 工作 Angular VS 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45627827/

相关文章:

angular - 将 Angular 5 升级到 6 时,我得到不兼容的对等依赖(使用 ng update @angular/core)

node.js - 创建 react 应用程序无法在构建后读取环境变量

javascript - 如何处理 puppeteer-cluster[CONCURRENCY_BROWSER] 中的多个选项卡?

Angular 2 react 形式 - 从 formControlName 传递一个值

mysql - 连接 mySQL 和 Nodejs

npm - 无服务器框架从代理后面登录?

java - Android 客户端没有从 node.js 服务器接收到 socket.io 消息

node.js - 使用 Gitlab CI 构建 Node 应用程序并将其部署到 Openshift

node.js - 在本地运行现有的 Angular 项目

angular - 在 npm 中安装新依赖项时 RXJS 版本不匹配