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

后端 未结 30 2849
忘掉有多难
忘掉有多难 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-29 00:15

    The issue is simple, npm doesn't know about ng

    Just run npm link @angular/cli and it should work seamlessly.

提交回复
热议问题