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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/stu_20052369/article/details/87180462

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.
  e2e (e) Builds and serves an Angular app, then runs end-to-end tests using Protractor.
  generate (g) Generates and/or modifies files based on a schematic.
  help Lists available commands and their short descriptions.
  lint (l) Runs linting tools on Angular app code in a given project folder.
  new (n) Creates a new workspace and an initial Angular app.
  run Runs an Architect target with an optional custom builder configuration defined in your project.
  serve (s) Builds and serves your app, rebuilding on file changes.
  test (t) Runs unit tests in a project.
  update Updates your application and its dependencies. See https://update.angular.io/
  version (v) Outputs Angular CLI version.
  xi18n Extracts i18n messages from source code.

     查看当前angular版本

ng version

命令行 :

cd foldername   //进入到当前目录下的某个子目录中

cd ..  // 返回到当前目录的上一级目录, 中间有空格

猜你喜欢

转载自blog.csdn.net/stu_20052369/article/details/87180462
今日推荐