Angular Cli在创建enw项目时出现错误

时间:2018-10-22 14:23:05

标签: angular angular-cli angular-cli-v6

我安装了:npm install --save angular-铯 当我创建新项目:ng new myapp时,出现错误:

CREATE drawangularcesium/src/app/app.component.ts (221 bytes)
CREATE drawangularcesium/src/app/app.component.css (0 bytes)
CREATE drawangularcesium/e2e/protractor.conf.js (752 bytes)
CREATE drawangularcesium/e2e/tsconfig.e2e.json (213 bytes)
CREATE drawangularcesium/e2e/src/app.e2e-spec.ts (313 bytes)
CREATE drawangularcesium/e2e/src/app.po.ts (208 bytes)
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:362:16)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

请帮助我

1 个答案:

答案 0 :(得分:1)

我认为您正在C:>中创建项目。尝试在C:\ AnyFolder>

这样的文件夹中创建项目