簡體   English   中英

Angular 4新項目創建錯誤

[英]Angular 4 new project creation error

我最近開始學習Angular4。我已經在機器上安裝了node和angular-cli。 問題是當我在做ng new時,在這里出現以下錯誤:

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.

出現一些角度安裝錯誤。 我必須按照以下步驟解決它。

npm重建npm安裝,然后ng服務應用編譯成功,沒有任何錯誤

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM