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'
解决方法:
1、将node_modules文件整个删除,npm install重新安装一次依赖包
2、如果方法1还不行,就将pakage.json的@angular/cli的版本改低一点,我改成了1.2.6