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.

[ERROR] ng new failed on @angular/cli 1.6

See original GitHub issue

Versions

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:closed
  • Created 6 years ago
  • Reactions:22
  • Comments:38 (8 by maintainers)

github_iconTop GitHub Comments

25reactions
hanslcommented, Dec 6, 2017

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.

7reactions
hanslcommented, Dec 6, 2017

Testing locally, I’ll come back with some (hopefully good) news soon.

Read more comments on GitHub >

github_iconTop 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 >

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