ng: command not found while creating new project using angular-cli

后端 未结 30 2910
忘掉有多难
忘掉有多难 2020-11-28 23:42

Installed angular-cli globally using (npm install -g angular-cli) but when I\'m trying to create project using ng new my-project it is throwing err

30条回答
  •  囚心锁ツ
    2020-11-28 23:57

    If you are working in windows 7 and you can not run command start with ng

    please, update the angular/CLI at once and try to use ng commands

    use below comman to update latest CLI

    npm install -g @angular/cli@latest
    

提交回复
热议问题