Node.js 使用angular cli创建angular项目时出现问题

Node.js 使用angular cli创建angular项目时出现问题,node.js,angular,Node.js,Angular,我使用的是Windows 10,我在使用时从未遇到任何问题 为了创建和运行angular project,今天我注意到我仍然可以使用ng serve运行旧的项目,但是当我尝试使用ng new*name*创建新项目时,在创建日志的末尾出现了以下警告: npm WARN rollback Rolling back minimist@1.2.0 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\U

我使用的是Windows 10,我在使用时从未遇到任何问题 为了创建和运行angular project,今天我注意到我仍然可以使用
ng serve
运行旧的项目,但是当我尝试使用
ng new*name*
创建新项目时,在创建日志的末尾出现了以下警告:

npm WARN rollback Rolling back minimist@1.2.0 failed (this is probably harmless): EPERM: operation not permitted, lstat 'C:\Users\Talon\Desktop\angular\angular-essentials-two\routing\node_modules\fsevents\node_modules\rc\node_modules'
npm WARN @angular-devkit/schematics@0.0.51 requires a peer of @angular-devkit/core@0.0.28 but none is installed. You must install peer dependencies yourself.
npm WARN @schematics/angular@0.1.16 requires a peer of @angular-devkit/core@0.0.28 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
如果我尝试进入项目并运行
ng serve
,我会

module.js:540
throw err;
^

Error: Cannot find module '@angular-devkit/core'
at Function.Module._resolveFilename (module.js:538:15)
at Function.Module._load (module.js:468:25)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\Talon\Desktop\angular\angular-essentials-two\routing\node_modules\@angular-devkit\schematics\src\tree\virtual.js:10:16)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
如果我
ng serve
我有相同的无法找到模块'@angular devkit/core'错误

我不知道这是否是巧合,但在几天前我进行的最新Windows10更新之前,一切都很正常。
我当前的angular cli版本是
1.6.3

npm安装--save dev@angular devkit/core
将解决这个问题

尝试
npm安装--save dev@angular devkit/core
,实际上刚刚第一次遇到这个错误,这就是我修复它的原因。。。也许他们昨晚更新了什么?那就解决了。它在最后抛出了相同的
跳过可选依赖性
消息,但如果我运行它,它工作正常。不要担心fsevents依赖性,我相信它只适用于iOS(windows和linux都会弹出此软可选依赖性警告)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\@angular-devkit\core\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ @angular-devkit/core@0.0.28
updated 1 package in 9.351s