Ng新命令需要很长时间

时间:2020-07-08 10:45:01

标签: angular-cli

我将角度更新为最新。所以现在我有了angular10。我用ng new命令毫无问题地完成了两个项目。但是现在当我尝试为ng new proj_name创建一个新的angular项目时,安装包需要很长时间。此错误完成了。

/ Installing packages...npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! Unexpected end of JSON input while parsing near '..."^2.8.6","coveralls":'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\chalani\AppData\Roaming\npm-cache\_logs\2020-07-08T10_50_24_373Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.

我应该怎么做才能创建一个新项目?

0 个答案:

没有答案