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

Created on 12 Oct 2017  ·  7Comments  ·  Source: angular/angular-cli

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'

Most helpful comment

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

All 7 comments

请问解决了吗

Is anyone working on it?

Me too. How to deal with it?

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

It works for me .
But why it happened ?

ng set --global packageManager=npm

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._

Was this page helpful?
0 / 5 - 0 ratings