美文网首页
1. 搭建 Angular 项目环境

1. 搭建 Angular 项目环境

作者: 晨曦Bai | 来源:发表于2019-07-25 15:41 被阅读0次

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

相关文章

网友评论

      本文标题:1. 搭建 Angular 项目环境

      本文链接:https://www.haomeiwen.com/subject/oiyhrctx.html