Actually I've used angular in windows and I didn't faced this problem after updated to ng 4. But when i'm trying this to ubuntu after updating to ng 4, I'm facing this issue while trying to create a new app using ng new command. See the below image.
enter image description here
1 Answer
It seems like you have an npm project (a package.json file) within your desktop folder or in the path above. Either delete or move that project or put your new project in a different directory. see https://github.com/angular/angular-cli/issues/2818#issuecomment-257964822
3 Comments
RuD3B0y
Nope, I cannot create on other folders too: imgur.com/Km8VxZW :( Edit - 1: Let me search for any.
Kim Kern
It goes all the way up. So if you try
ng new project within ~/dir1/dir2 and you have a package.json in dir1, it will still fail. In your console, run pwd and check all directoriesRuD3B0y
Yep,
ng new command works on other drives. I'm trying the way metioned on the github source. Thanks BTW.
my-appdirectory present?ls -aif ever there was one.