angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

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

Open OrkhanHuseynli opened this issue 8 years ago • 34 comments

I reinstalled Node and Angular, did it several times. cleaning cache and so on. but still get this error Can anyone please help? p.s. I've seen other discussions about the same error, but they just reinstalled their node.js and everything worked. Not in my case

issue: When I create a new project "ng new project-name" , I get this error: Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist.

OrkhanHuseynli avatar Dec 24 '17 16:12 OrkhanHuseynli

Ok trying now... And how did you reinstall Angular CLI? @OrkhanHuseynli

lenichols avatar Dec 31 '17 06:12 lenichols

@lenichols
if you delete all node files, then actually you delete your angular installation by default. Therefore, you don't "reinstall" angular again, Thus, follow steps I provided in above comment: Install Node: simply run installation file Install angular: npm install -g @angular/cli

OrkhanHuseynli avatar Dec 31 '17 14:12 OrkhanHuseynli

@OrkhanHuseynli - this worked!

  1. I uninstalled node completely including its dependencies
  2. Reinstalled it using the node package from Node's website - not homebrew
  3. Installed AngularCLI

it worked. I did this 3 times each installing node via homebrew and it did not work. I think the issue may be in the homebrew install IDK.

lenichols avatar Dec 31 '17 20:12 lenichols

same issue. Is there no way to solve this problem but to reinstall node.js completely including all of its packages?

csgka1 avatar Jan 08 '18 10:01 csgka1

In my case the problem was folder permission. I tried in a folder with full permission and worked.

If you are using windows just uncheck Readonly

If you are using OS base on Linux Kernel just:

sudo chmod 644 -R foldername

titusfx avatar Jan 27 '18 12:01 titusfx

I can't figure out how how resolve this issue. I still receive this Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist.

thelensky avatar Mar 05 '18 09:03 thelensky

I also have the same error. I am using node 9.8.0, have tried Angular CLI 1.7,3, 1.7.2, 1.5.3, 1.6.0 and others, Ubuntu 16.04.4 and NVM 0.33.8

ajazam avatar Mar 12 '18 06:03 ajazam

Same issue Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist. Lets keep this going until a solution,

DeveloperMoney avatar Mar 17 '18 19:03 DeveloperMoney

Did anyone find a solution ?

andrewolip avatar Mar 21 '18 00:03 andrewolip

I used windows 10. It also work in my Mac with a workaround.

On Wed, 21 Mar 2018, 00:46 Andy, [email protected] wrote:

Did anyone find a solution ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/angular/angular-cli/issues/8989#issuecomment-374805280, or mute the thread https://github.com/notifications/unsubscribe-auth/ABwTc82AstOg9_h8V6Ic4gNRnDB2yG5rks5tgaL_gaJpZM4RL9mS .

-- Regards

Abdul Jabbar Azam twitter: @ajazam

ajazam avatar Mar 21 '18 14:03 ajazam

just uninstall angular/cli and clean cache and again install angular/cli and try ng new "your app name" it will work......./

eragon11 avatar Apr 19 '18 07:04 eragon11

Hi @eragon11, that doesn't work for me. Please tell me the version that you have of node, cli, and npm Thanks

Biptor avatar Apr 26 '18 13:04 Biptor

@OrkhanHuseynli and @lenichols also worked for me.

  1. I uninstalled Node 8.x using the "Uninstall Nodejs" program included with the Node installation on Windows 10
  2. I installed @angular/cli 1.7.4 globally using NPM.
  3. I installed Node 10.x via website download (not Homebrew)

No longer receiving the "Error: Path" issue.

tramel-woodard avatar May 20 '18 01:05 tramel-woodard

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.