【发布时间】:2018-06-11 15:46:37
【问题描述】:
当我尝试使用 ng new 命令使用 Git Bash 控制台创建新的 Angular 项目时发生错误。我之前创建了项目,这个问题从未发生过。这是调试日志https://drive.google.com/open?id=10ddECHas5LA2mxmOd7g6ItgX8pNbTj54 和控制台截图https://drive.google.com/open?id=1zahCD8q2FcXirlhO0cPqSjZOjXRqBLqx 的链接,我们将不胜感激。
$ ng new todo
installing ng
create .editorconfig
create README.md
create src\app\app.component.css
create src\app\app.component.html
create src\app\app.component.spec.ts
create src\app\app.component.ts
create src\app\app.module.ts
create src\assets\.gitkeep
create src\environments\environment.prod.ts
create src\environments\environment.ts
create src\favicon.ico
create src\index.html
create src\main.ts
create src\polyfills.ts
create src\styles.css
create src\test.ts
create src\tsconfig.app.json
create src\tsconfig.spec.json
create src\typings.d.ts
create .angular-cli.json
create e2e\app.e2e-spec.ts
create e2e\app.po.ts
create e2e\tsconfig.e2e.json
create .gitignore
create karma.conf.js
create package.json
create protractor.conf.js
create tsconfig.json
create tslint.json
Successfully initialized git.
Installing packages for tooling via npm.
npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major
version bump
npm ERR! Unexpected end of JSON input while parsing near
'...int":"2.8.x","nock":"'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dext3\AppData\Roaming\npm-cache\_logs\2018-06-
11T00_36_20_835Z-debug.log
【问题讨论】:
-
请在您的问题中包含错误消息,而不是链接到外部资源!