2

I Create a folder and run git-bash command there

$ ng new ng_course

Actually i tried this first time and it works. But i delete the files when this command downloaded various files. And then i run this command again again but it don't work now.

okay, for the problem solving i tried this

I deleted the file in c:\users\XXX.angular.json

i tried this command also:

npm uninstall -g @angular/cli (add sudo in the start if using Linux)

npm cache clean --force / npm cache verify

npm install -g @angular/cli

but it show this message always:

Project name "ng_course" is not valid. New project names must start with a letter, and must contain only alphanumeric characters or dashes. When adding a dash the segment after the dash must also start with a letter. ng_course

2
  • The error message answer your question. Commented Jul 12, 2019 at 6:59
  • 1
    Thanks man, I should check it carefully. I solve it now ! Commented Jul 12, 2019 at 11:01

1 Answer 1

1

I think you can't use _ in your project name. Instead of that change name to ng-course and everything should work. Error mean that, your project name can only contain alphanumeric characters or dashes.

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

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.