赞
踩
node -v # 查看 Node.js 当前版本
npm -v # 查看 Npm 当前版本
# 设置淘宝源
npm config set registry https://registry.npm.taobao.org
npm config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass
# 恢复默认源
npm config delete registry
npm config delete sass_binary_site
npm install -g @angular/cli
ng new my-project --style less --routing
ng add ng-alain
npm install jsonc-parser
? Would you like to add i18n plugin? (default: N) Yes
Sorry, the current version only supports angular 11.x, pls downgrade the global Anguar-cli version: [yarn global add @angular/cli@11] (or via npm: [npm install -g @angular/cli@11])
npm install -g @angular/cli@11
Your global Angular CLI version (11.2.10) is greater than your local version (9.1.15). The local Angular CLI version is used.
npm install --save-dev @angular/cli@latest
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。