1

enter image description here

enter image description here

Fist I updated angular cli to latest version with "npm install -g @angular/cli@next" command after that problem started. ng new projectName not working.

Cli versions I tried 6+ and 1.6 and 1.7, all versions i'm getting same problem.

2
  • it appears in bad install, try to remove and installe npm and angular-cli again and it works. Commented Jul 29, 2018 at 5:26
  • i did my times still same error. Commented Jul 29, 2018 at 5:29

3 Answers 3

1

Try the below steps one after another.

  1. npm i -g @angular/cli@latest
  2. npm i --save-dev @angular/cli@latest
  3. ng update @angular/cli
  4. npm i --save-dev webpack

The above steps install angular 6 and update the whole project to angular 6.

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

1 Comment

Same error: Aruns-MacBook-Air:desktop mmnarun$ ng new App Tree type is not supported.
0

Isn't just the name is not supported? Name 'test' is also not supported, try generating an app with any other name.

Comments

0

instead of name as app use anyother name like "angular-app", that will work, even i am also getting same problem like you,

Project name "app" is not a supported name.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.