PS E:\Anguler> ng version
Angular CLI: 8.0.6
Node: 10.16.0
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.800.6
@angular-devkit/core 8.0.6
@angular-devkit/schematics 8.0.6
@schematics/angular 8.0.6
@schematics/update 0.800.6
rxjs 6.4.0
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS E:\Anguler> ng new x
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS
CREATE x/angular.json (3385 bytes)
CREATE x/package.json (1274 bytes)
CREATE x/README.md (1018 bytes)
CREATE x/tsconfig.json (435 bytes)
CREATE x/tslint.json (1988 bytes)
CREATE x/.editorconfig (246 bytes)
CREATE x/.gitignore (629 bytes)
CREATE x/browserslist (429 bytes)
CREATE x/karma.conf.js (1013 bytes)
CREATE x/tsconfig.app.json (210 bytes)
CREATE x/tsconfig.spec.json (270 bytes)
CREATE x/src/favicon.ico (5430 bytes)
CREATE x/src/index.html (288 bytes)
CREATE x/src/main.ts (372 bytes)
CREATE x/src/polyfills.ts (2838 bytes)
CREATE x/src/styles.css (80 bytes)
CREATE x/src/test.ts (642 bytes)
CREATE x/src/assets/.gitkeep (0 bytes)
CREATE x/src/environments/environment.prod.ts (51 bytes)
CREATE x/src/environments/environment.ts (662 bytes)
CREATE x/src/app/app-routing.module.ts (245 bytes)
CREATE x/src/app/app.module.ts (393 bytes)
CREATE x/src/app/app.component.html (1152 bytes)
CREATE x/src/app/app.component.spec.ts (1080 bytes)
CREATE x/src/app/app.component.ts (205 bytes)
CREATE x/src/app/app.component.css (0 bytes)
CREATE x/e2e/protractor.conf.js (810 bytes)
CREATE x/e2e/tsconfig.json (214 bytes)
CREATE x/e2e/src/app.e2e-spec.ts (630 bytes)
CREATE x/e2e/src/app.po.ts (251 bytes)
events.js:174
throw er; // Unhandled 'error' event
^
错误:生成C:\ Windows \ system32 \ cmd.exe EACCES
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19)
在以下位置发出的“错误”事件:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12) at onErrorNT (internal/child_process.js:415:16) at process._tickCallback (internal/process/next_tick.js:63:19)