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

后端 未结 30 2806
忘掉有多难
忘掉有多难 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:59

    soluton for windows operating system only....... first step:

    install nodejs version: nodev 8.1.2

    second step: set up environment variable like: C:\ProgramFiles\nodejs

    Third step: install angular use this command: npm install -g @angular/cli

    after installation whereever you have to create project like: ng new first-project......

提交回复
热议问题