Angular (1) - use angular-cli to create a new project

1. Installation

cnpm install -g @angular/cli

2. Create

of new of-project

3. Install dependencies

cd of the project
cnpm install

4. Start

of serve --open

5. Rename

I tried to change the project name, changed the name in package.json, changed the file name, then deleted the node_modules in the project, and re-installed the dependencies, and the project started normally.





Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324848078&siteId=291194637