Converting an existing angular 2 project to use angular CLI

后端 未结 4 1742
萌比男神i
萌比男神i 2021-01-01 10:23

I have a project that was not created using ng new (rather, I followed the quickstart guide). When I run an angular CLI command in that project (such as n

4条回答
  •  Happy的楠姐
    2021-01-01 10:54

    ng init was removed from the latest version of the angular CLI but You can use yarn package manager to resolve all the dependencies. In order to use yarn, you have to install it first.

    To install yarn in Ubuntu, enter the following command in your terminal:

    sudo apt-get update && sudo apt-get install yarn
    

    For Windows you can download yarn installer from here .

    After installing yarn, you can run the command yarn install in your project direcotry which will download all the dependencies of your project.

    For additional information about yarn check official docs

提交回复
热议问题