[ERROR] ng new failed on @angular/cli 1.6
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
Desired behavior
Mention any other details that might be useful (optional)
Testing now @hansl
@hansl Just tried it, everything is working.
@hansl Can confirm working on mac os after reinstalling and creating new project. Thanks!
@hansl works now, thank you so much
Closing this issue as fixed. Thanks all!
wow, thanks :) literally just found this a few minutes ago.
Thanks for the fix Hansl!
I am completely new to this, can some one please give me some advice on how to apply the fix? Thanks in advance.
@cortez-scr npm install -g @angular/cli, ng new my-app
Oh ok, I understand . By re-executing npm install, i am downloading the fixes and automatically replacing them on my machine. Pretty cool! Thanks
Thanks @hansl
Shouldn't there be a publicly visible 1.6.1 release for this fix? I do not see it when I click on the Releases tab.
@fmorriso No, because it wasn't @angular/cli that had the issue. It was another package that @angular/cli depends on (angular/devkit package).
@yarrgh Thanks for the clarification. I was unaware this issue was caused by another package, much less that it was fixed, which is why I waited (in vain it turns out) for a patch release to appear.
May I make a suggestion? Whenever these situations exist and are fixed by some kind of "not visible to the general public" technique like was the case in this issue, can somebody make a public announcement (changelog.md ?, WiKi entry, etc.) so that it stands out? Otherwise, you have to search through the issues and hopefully notice that the issue was resolved, something I'm betting that not a lot of people will see.
Just my two cents worth.
Hey guys,
I'm having the same issue and I've done
npm uninstall -g @angular/cli
npm cache verify
npm i -g @angular/cli
ng new t
Yet still get the same errors, I'm on now 8.9 and angular cli 1.6.6...
I'm also having the same problem... =/
$ sudo ng new angular-src Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist.
I'm using MacOs High Sierra 10.13.2
@seekheart try creating the project at some new path. this resolved the issue for me.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.