[ERROR] ng new failed on @angular/cli 1.6
See original GitHub issueVersions
Angular CLI: 1.6.0
Node: 8.9.1
OS: darwin x64
Repro steps
when i launch command ng new
to create a new app, i have error.
Observed behavior
ng new look-error
error! look-error/src/app/app.component.html already exists.
error! look-error/src/app/app.component.spec.ts already exists.
error! look-error/src/app/app.component.ts already exists.
error! look-error/src/app/app.module.ts already exists.
ENOENT: no such file or directory, uv_chdir
Error: ENOENT: no such file or directory, uv_chdir
at process.chdir (/usr/local/lib/node_modules/@angular/cli/node_modules/graceful-fs/polyfills.js:21:9)
at /usr/local/lib/node_modules/@angular/cli/tasks/init.js:74:25
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Desired behavior
Mention any other details that might be useful (optional)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:22
- Comments:38 (8 by maintainers)
Top Results From Across the Web
Angular CLI ng new error - node.js - Stack Overflow
I update angular-cli up 1.6.4, Node up 9.4.0 and worked fine for ... Remove node_modules and run npm install to get the latest...
Read more >How To Update Angular CLI To Latest Version
First Update your Angular app to Angular 9. Then use ng update command. Angular CLI version check. Before updating check the Angular version ......
Read more >How to Solve the Angular NPM Error - C# Corner
The error in NPM, 'error package install failed, see above', can occur when the user creates a new project in Angular using Node.js...
Read more >unable to create angular project - Genuitec
Unexpected exit value executing npm install @angular/cli@1.6.5(exit value:-1). No other details about the error are mentioned in terminal.
Read more >How to update local Angular CLI version? in package.json file ...
ng new Angular8app. Copy. it shows this message: Your global Angular CLI version (8.0.2) is greater than your local version (7.3.8).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is a problem with trying to overwrite files in Schematics. It seems like some files were created twice and fixing a bug in validation actually uncovered the error. I’m working on a fix right now.
Testing locally, I’ll come back with some (hopefully good) news soon.