Angular 6 出现新错误

Ng new error with Angular 6

我正在尝试在 Angular 中启动一个新项目,当我在控制台中执行命令 ng new projectName 时,出现以下错误:

npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major 
version bump
npm ERR! code E404
npm ERR! 404 Not Found: istanbul@^0.4.5

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jmarques\AppData\Roaming\npm-cache\_logs18-08- 
08T18_17_43_246Z-debug.log
Package install failed, see above.

当我尝试执行命令 npm install 时,它 returns 同样的错误 e 不安装 node_modules。

版本: - 节点 10.8.0 - npm 6.0.1 - ng 6.1.2

尝试移除并删除您的 node_modules,然后清理缓存 npm cache verify --force 然后使用 npm install 重新安装。