question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ng new` error 'Tree type is not supported

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

This may be a duplicate of #11683, but I’m unable to ng new due to some global config problem and the error isn’t helpful in helping me resolve it.

Command (mark with an x)

- [X] new

Versions

Node: 8.10.0
OS: linux x64
Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    <error>
@angular-devkit/core         <error>
@angular-devkit/schematics   0.7.1
@schematics/angular          <error>
@schematics/update           <error>
rxjs                         <error>

Repro steps

Not sure, happens every time I try to ng new on my machine. I have removed all globally installed yarn packages and deleting my global node_modules folder (verified by failing to run ng at all), then reinstalling them without success.

The log given by the failure

$ ng new my-app Tree type is not supported.

Desired functionality

Scaffold me out an Angular app

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
abhijeet029commented, Aug 29, 2018

Remove node_modules folder and reinstall angular cli again. It will resolve the issue

3reactions
schankamcommented, Aug 17, 2018

Since 6.1, it really feels like all the commands are not working correctly… I can’t create a component in a specific module anymore via cli, the ng update does not work with PWA, schematics do not work anymore… Everything is f***ed up, and it’s been 3 weeks. What the hell are they doing ?..

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Tree type is not supported." when generating new ...
@nisimjoseph thx - that helped. I am using angular/cli 6.1.4. Solution: 1 ) delete node-modules folder and 2) package-lock file 3) then run...
Read more >
Tree type is not supported when creating new Angular project
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...
Read more >
Workspace npm dependencies - Angular
The CLI command ng new creates a package.json file when it creates the new workspace. This package.json is used by all projects in...
Read more >
unable to resolve dependency tree error for creating new ...
I decided to update my Angular to the latest and run ng -g i angular-cli@latest and I received an error that the file...
Read more >
Known issues with PaperCut MF, NG, Hive, Pocket and ...
Executive Summary and Printer Statistics produce an error when using some external database types: "No data type for node: org.hibernate.hql.ast.tree.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found