安装了角度CLI,然后尝试通过它创建一个新的Angular4应用程序。
我运行了以下命令:
安装CLI: npm install -g @ angular / cli
使用CLI创建新项目: ng new angu4-app
但是我收到了以下错误
node -v:v6.11.2
npm -v:5.3.0
@ angular / cli:1.3.2
os:win32 x64
bob $ git format-patch --stdout e6def65..master > history.patch
alice $ git am history.patch
以下是日志详细信息,其中显示了一些错误,我无法弄清楚 有没有人遇到类似的问题。
D:\Angular4>ng new angu4-app
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
Installing packages for tooling via npm.
npm ERR! Unexpected end of input at 1:65316
npm ERR! 2.4.10","description":"Angular - the core framework","main":"bundles/
npm ERR! ^
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\vkaranat\AppData\Roaming\npm-cache\_logs\2017-08-28T14_26_48_240Z-debug.log
Package install failed, see above.
Package install failed, see above.