1. 搭建 Angular 项目环境

2019-07-25  本文已影响0人  晨曦Bai

1. 安装 node.js

1. 下载安装

官网:https://nodejs.org/en/download/

2. 管理器命令安装

https://nodejs.org/en/download/package-manager/
yum nodejs12 (还有其他平台的安装命令)
ubuntu/Debian安装: https://github.com/nodesource/distributions/blob/master/README.md

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get install -y nodejs

node -v

2. 安装angular

npm install -g @angular/cli

3. 创建工作空间和初始应用

ng new my-app

上一篇 下一篇

猜你喜欢

热点阅读