码迷,mamicode.com
首页 > 编程语言 > 详细

angular2使用ng g component navbar创建组件报错

时间:2017-11-03 11:21:16      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:erro   es6   module   nav   node   bsp   error   esc   依赖   

Error: ELOOP: too many symbolic links encountered, stat ‘C:\Users\inn\angulardem
o\node_modules\@angular\cli\node_modules\webpack\node_modules\escope\node_module
s\es6-map\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator\node_mod
ules\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_mod
ules\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\nod
e_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-i
terator\node_modules\d‘
ELOOP: too many symbolic links encountered, stat ‘C:\Users\inn\angulardemo\node_
modules\@angular\cli\node_modules\webpack\node_modules\escope\node_modules\es6-m
ap\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-e
xt\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_mo
dules\d\node_modules\es5-ext\node_modules\es6-iterator\node_modules\d\node_modul
es\es5-ext\node_modules\es6-iterator\node_modules\d\node_modules\es5-ext\node_mo
dules\es6-iterator\node_modules\d\node_modules\es5-ext\node_modules\es6-iterator
\node_modules\d‘

 

解决方法:

1、将node_modules文件整个删除,npm install重新安装一次依赖包【亲测可行】

2、更改pakage.json的@angular/cli的版本,可以改成 1.2.1或者1.2.6

技术分享

 

angular2使用ng g component navbar创建组件报错

标签:erro   es6   module   nav   node   bsp   error   esc   依赖   

原文地址:http://www.cnblogs.com/yunspider/p/7776838.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!