我最近开始学习Angular 4.我在我的机器上安装了node和angular-cli。问题是当我正在做一个新的,在这里我得到以下错误:
npm WARN codelyzer@3.2.2 requires a peer of @angular/compiler@^2.3.1 || >=4.0.0-beta <5.0.0 but none was installed.
npm WARN codelyzer@3.2.2 requires a peer of @angular/core@^2.3.1 || >=4.0.0-beta <5.0.0 but none was installed.
npm ERR! path D:\UdemyDemos\my-first-app\node_modules\yeast
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'D:\UdemyDemos\my-first-app\node_modules\yeast' -> 'D:\UdemyDemos\my-first-app\node_modules\.yeast.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\acer\AppData\Roaming\npm-cache\_logs\2017-11-07T16_18_07_436Z-debug.log
Package install failed, see above.
答案 0 :(得分:0)
有一些角度安装错误。我必须按照以下步骤解决它。
npm rebuild npm安装 然后ng服务app编译没有任何错误