Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tree type is not supported- error with ng new #13380
Bug Report or Feature Request (mark with an
I wanted to have two versions of angular on my machine (Angular 6 and 7) and I accidentally remove a file from the npm-cache folder, I guess that it maybe cause the failure.
So I tried repairing that by uninstalling all the programs needed and installing them again, but when I tried to create an
ng new project it shows me that the "Tree Type is not supported".
I followed step by step all those issues:
-Error "Tree type is not supported." when generating new module in v6.1.1: #11683
ng new error 'Tree type is not supported: #11707
-Schematic - Tree type is not supported: #11963
But the problem still there.
The log given by the failure
ng new my-app
Tree type is not supported.
I expected to be able to create a new project without problems.
Mention any other details that might be useful
When I ran the
npm cache clean command there's an npm error:
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use
npm install --cache /tmp/empty-cache to use a temporary cache instead of nuking the actual one.
npm ERR! If you're sure you want to delete the entire cache, rerun this commandwith --force.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dallensm\AppData\Roaming\npm-cache_logs\2019-01-04T23_55_21_210Z-debug.log
@derrichinho thanks for reaching out, and thank you for the detailed description!
This doesn't look like an issue in the CLI, I'd recommend you to use either StackOverflow or our channel on Gitter.
If it turns out to be a bug in Angular CLI, please feel free to open a new issue. Thanks!