【安装】前端主流框架安装

本文介绍了前端开发中如何安装Node.js、npm以及TypeScript。首先,从官方渠道下载并安装集成npm的Node.js,通过cmd验证安装成功。接着,详细讲解了如何使用npm来安装TypeScript,并指导如何通过ng命令检查Angular的安装及版本信息。
摘要由CSDN通过智能技术生成

1.安装node.js 和npm

  目前新版的node.js 集成了npm。到node.js官网 下载安装即可

  安装完成后,使用cmd(win+r然后输入cmd进入)测试下是否安装成功

 node -v
  npm -v

2. 安装TypeScript

npm install -g typescript

3. 安装Angular 

npm install -g @angular/cli

npm i -g @angular/cli

安装完成后,使用 ng 来查看 angular的命令

Available Commands:
  add Adds support for an external library to your project.
  build (b) Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
  config Retrieves or sets Angular configuration values in the angular.json file for the workspace.
  doc (d) Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值