Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng new hello Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist

Tags:

angular

I am facing problem in creating new project in angular. When I run ng new myapp command I get following command

ng new hello

Error: Path "/app/app.module.ts" does not exist.
Path "/app/app.module.ts" does not exist.

can anyone help me out???

like image 746
krishna varma Avatar asked Dec 12 '17 05:12

krishna varma


3 Answers

Here is the Solution

Please make sure that your new folder have write permission   

if you are using ubuntu please run the command below to that folder

sudo chmod 644 -R foldername 

then run ng new appname

and check your node version too

like image 69
Rahul VV Avatar answered Nov 20 '22 05:11

Rahul VV


Fixed it by simply deleting all node_module folders on my disk:

  • Open Finder (on Mac) or Explorer (on Windows)
  • search for all occurrences of node_module folders
  • move all of these to the trash bin (you can undo this, but should not need to).

And that's it. Seems like there was clutter lying around.

Please keep in mind, this is the wooden hammer method. Your projects need to be rebuilt from scratch after this.

like image 21
Dennis Löhmann Avatar answered Nov 20 '22 04:11

Dennis Löhmann


It means the folder in which you are creating angular project is corrupted. The same command will work in some other Path.

like image 43
prathiba palanisami Avatar answered Nov 20 '22 03:11

prathiba palanisami