如何清除 npm 包模块中的 npm 缓存错误?

yuv*_*rla 2 npm angular

实际上,我正在创建一个 Angular 应用程序,并且在工作时遇到了这些错误:

npm ERR! Unexpected end of JSON input while parsing near '...,"karma-qunit":"*","k'
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Yuvan\AppData\Roaming\npm-cache\_logs\2018-12-02T14_06_06_337Z-debug.log
Package install failed, see above.
Run Code Online (Sandbox Code Playgroud)

yuv*_*rla 5

我们可以使用 npm 的命令来清除我昨天发现的这些错误,使用起来非常简单:

npm 缓存清理 --force