配置 Angular 10 运行环境
Angular Node.js 大约 1269 字前置条件
Python2.7
Visual Studio Community 2017
- 设置
node-gyp
:npm config set msvs_version 2017
注意
Angular 11
可以使用Python3
和Visual Studio Community 2019
。
安装 Angular 10
查看版本号:
npm view @angular/cli versions
选择Angular 10.2.3
:
npm install -g @angular/cli@10.2.3
测试是否安装成功
ng v
输出
PS C:\Workspace\Angular> ng v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 10.2.3
Node: 14.16.1
OS: win32 x64
Angular:
...
Ivy Workspace:
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1002.3 (cli-only)
@angular-devkit/core 10.2.3 (cli-only)
@angular-devkit/schematics 10.2.3 (cli-only)
@schematics/angular 10.2.3 (cli-only)
@schematics/update 0.1002.3 (cli-only)
卸载 Angular
npm uninstall -g @angular/cli
新建项目
ng new angular-tour-of-heroes
输出:
√ Packages installed successfully.
'git' is not recognized as an internal or external command,
operable program or batch file.
运行项目
ng serve --open
阅读 929 · 发布于 2021-06-20
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
JavaScript 闭包阅读 598
-
Linux 之 Ubuntu apt-get 更换镜像阅读 2280
-
AndroidStudio non-zero value 1 错误阅读 767
-
设计模式之单例模式阅读 1188
-
Java jcmd 操作 JFR 飞行记录仪阅读 736
-
MySQL 查看运行的是哪份配置文件阅读 1183
-
pgAdmin4 Failed to open the system default web browser.Is one installed?.阅读 7490
-
Android 不允许用户清理数据阅读 1194
-
Chrome 打开开发者工具的几种方法阅读 1299
-
Java synchronized 保证可见性阅读 585