'npm' work. 'ng' just open the ng file from that path. It not execute anything
– Filip Laurentiu
2 Answers
4
votes
The problem was that I use ng in powershell. In cmd work..
1
votes
Remove path "C:\Users{user}\AppData\Roaming\npm\node_modules@angular\cli\bin" from Environment variable - path. It worked for me.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
ng new YourProjectName
to create a project andng serve
to run. – prady