angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

ng g component XXX . Error: ELOOP: too many symbolic links encountered

Open zhangshichuan opened this issue 9 years ago • 7 comments

OS: win7 64 After I created a project through ng new command, I successfully started with ng serve, and then I wanted to create a new component. When I used ng g component navbar, I prompted the error:

      Error: ELOOP: too many symbolic links encountered, stat 'C:\Users\Jack\WebstormProjects\snake\node_modules\@angular\cli\node_modules\webpack\node_modules\escope\node_modules\es6-map\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_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_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'

zhangshichuan avatar Oct 12 '17 05:10 zhangshichuan

请问解决了吗

duffy990 avatar Oct 12 '17 07:10 duffy990

Is anyone working on it?

Justin-wei avatar Oct 23 '17 10:10 Justin-wei

Me too. How to deal with it?

dingziyang avatar Nov 02 '17 06:11 dingziyang

Remove the package downloaded from CNPM and then use NPM to fix it.

zhangshichuan avatar Nov 02 '17 06:11 zhangshichuan

It works for me . But why it happened ?

ghost avatar Nov 07 '17 06:11 ghost

ng set --global packageManager=npm

gerryge avatar Nov 15 '17 09:11 gerryge

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.