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

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

Open tejaskuthe opened this issue 8 years ago • 14 comments

Versions

npm -v
5.5.1



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.

tejaskuthe avatar Dec 07 '17 08:12 tejaskuthe

I am also facing the same problem can anyone help me out???

gousehere avatar Dec 07 '17 12:12 gousehere

After searching for hours. I did not find the solution anywhere. But I reinstalled my node.js and npm, the problem was solved.

tejaskuthe avatar Dec 07 '17 12:12 tejaskuthe

Duplicate of #8765

Brocco avatar Dec 07 '17 16:12 Brocco

I reinstalled Node and Angular, did it several times. cleaning cache and so on. but still get this error Can anyone please help?

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 10:12 OrkhanHuseynli

+1

lenichols avatar Dec 24 '17 12:12 lenichols

Same issue on Windows 10. Tried to uninstall globally, clear cache and reinstall with no luck.

bradkt avatar Dec 28 '17 23:12 bradkt

Same issues here...Any workaround guys? I am new to angularjs and just get angularcli installed and run "ng new my-app" which from official getting started doc. And i got this issue.

(Win 10) Angular CLI: 1.6.3 Node: 8.9.0 OS: win32 x64

carlchandev avatar Dec 30 '17 05:12 carlchandev

@bradkt @carlchandev

please, see my last answer in the following link https://github.com/angular/angular-cli/issues/8989

OrkhanHuseynli avatar Dec 31 '17 14:12 OrkhanHuseynli

I reinstalled angular/cli globally (1.6.3), so the next message when I try ng new project-name is:

Error: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable. You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.

C'mon guys! What the heck are you doing with ng? I'm absolutely unable to do anything with it for a while, but I was able before..

nemeth-tibor avatar Jan 11 '18 22:01 nemeth-tibor

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'm also faced same issue ... i find the solution : 1. change the directory of your working and execute the code ng new "your app name" 2. other uninstall all the app(node,angular) and again reinstall................./

eragon11 avatar Apr 18 '18 11:04 eragon11

Hi Friends i found the answer for this error Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist. while creating the angular project

Solution : Follow the steps : Please go to the directory where you have installed the node then see in your project directory where you are creating the projects there you see node_modules folder simply delete that because its overwriting the your node modules directory

Cheers https://github.com/adnanaslamit/

adnanaslamgit avatar Jun 12 '18 15:06 adnanaslamgit

@adnanaslamit thanks brother it really worked for me but I delete node_modules outside of my projects directory

harendrakarsh avatar Mar 22 '19 06:03 harendrakarsh

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.