1

I'm new to Angular. I installed Angular CLI from Angular.io, but I get this error:

"Tree type is not supported"

when creating a new Angular project.

enter image description here

1

4 Answers 4

1
  • reinstall global @angular/cli

Finally removed yarn.lock and node_modules and installed again worked for me. This could help someone who has trouble now.

Sign up to request clarification or add additional context in comments.

2 Comments

i don't have yarn.lock , and i reinstalled global @angular/cli many times with diffrerent methods , but nothing changes
He meant to say, remove yarn.lock or package.json with node_modules. This worked for me. I was having issue generating a module.
0

I had the same issue, solved uninstalled angular cli global and reinstalling it again, did you tried that?

1 Comment

Yes i did , but nothing changes
0

I had same issue with different cases, ng new, and ngrx commands...

Please track this issue https://github.com/angular/angular-cli/issues/11707

Just downgrade CLI to 6.0.8 should work.

2 Comments

after downgrade , when creating new project , this error comes " Invalid rule result: Function(). "
@AyoubGhozzi please refer this comment. github.com/angular/angular-cli/issues/…
0

Upgrading npm to 6.4.1 solved issue for me

sudo npm update -g

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.