Dragos
Dragos

Reputation: 44

Angular cli issue (ng new/ng serve, etc..) ng commands not working on Windows

None of the ng commads are working anymore in my terminal. I can't generate a new projet ng new ... not working anymore, nor ng serve, etc...

This is the error I get for ng serve/ ng new ... ng --v,

"bash: /c/Users/Dragos/AppData/Roaming/npm/ng: /bin/sh: bad interpreter: No such file or directory"

It's as if the ng commands are not working at all.

I reinstalled node/npm/angular CLI globally and still I get the same error.

I am on windows 8.1 pro.

Sorry if the question is duplicate, I haven't seen a question asking for this specific piece of info.

Thanks

Upvotes: 0

Views: 883

Answers (1)

Suhag Lapani
Suhag Lapani

Reputation: 695

Try using this

ng new ProjectName --version 7

Upvotes: 1

Related Questions