angular2使用ng g c home/home建立組件報錯

Error: ELOOP: too many symbolic links encountered, stat 'E:\study\angular2\DaMoQiongQiu\routeTemplate\node_modules\.0.
1.5@es6-map\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_mod
ules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\no
de_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-
ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_module
s\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_
modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext'
ELOOP: too many symbolic links encountered, stat 'E:\study\angular2\DaMoQiongQiu\routeTemplate\node_modules\.0.1.5@es6
-map\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es
6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modu
les\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\nod
e_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-e
xt\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules
\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext'node

 

 

解決方法: es6

  一、將node_modules文件整個刪除,npm install從新安裝一次依賴包npm

  二、若是方法1還不行,就將pakage.json的@angular/cli的版本改低一點,我改爲了1.2.6json

相關文章
相關標籤/搜索