1

Whenever I try to create an angular project using ng new my-app-name, it shows the following error!

C:\Users\HP>ng new my-app-name

I get the following error in red marker!

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

I am using Angular CLI: 1.5.5 Node: 8.9.1 Windows: win32 x64

I can't post the image since i am new to stackoverflow and have not reached the required reputation to post the picture!

Thank You!

9
  • You get this error where? When doing what? We can't see your screen. Commented Dec 4, 2017 at 15:21
  • @JBNizet after I enter the command to create a new angular app inside my directory C:\Users\HP> The error is stated above as I mentioned. Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist. It was on the command prompt Commented Dec 4, 2017 at 15:28
  • 2
    First of all, you should create a folder called Angular_Projects or something to the effect and create your projects inside of that dir. Also, try starting Command Prompt as Administrator. You may not have "write" access to the folder you're trying to write to. Commented Dec 4, 2017 at 15:35
  • @BrandonMiller I created a folder to create my projects inside of that folder but still i am facing the same problem. However, if i run cmd as admin i can create it. Is there any way i can create the app in the folder i just created because i just want my system32 folder to be untouched! And yes i do have a write permission as well. Commented Dec 4, 2017 at 15:48
  • 1
    But you can (and should) post text. And what you get in your console window is text. Just use copy/paste. Commented Dec 4, 2017 at 15:52

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

i had this problem solved. Thanks for your help though!
0

On ng new myapp.This error occurs..!?

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.