nvm+npm+nrm+angular环境
windows下载 安装nvm
https://github.com/coreybutler/nvm-windows/releases
解压到:
nvm_noinstall.zip解压到比如d:\devel\nvm
右键以管理员的身份运行install.cmd
复制setting.txt,复制到d:\devel\nvm
修改:
root: d:\devel\nvm
path: d:\devel\nodejs
arch: 64
proxy: none
环境变量:
NVM_HOME:d:\devel\nvm
NPM_HOME:d:\devel\nvm\npm
NVM_SYMLINK:d:\devel\nodejs
PATH:%NVM_HOME%;%NPM_HOME%;%NVM_SYMLINK%
安装nodejs
nvm install v10.15
nvm ls
node -v
安装npm
nvm install -g npm
npm -v
安装nrm
npm install nrm –g --registry=https://registry.npm.taobao.org
nrm ls
让npm使用使用淘宝镜像
nrm use taobao
从gitlab下载web
进入web,安装依赖
npm install
安装angular cli
npm install -g @angular/cli
编译客户端
ng build
结果在dist/web目录下,复制web目录下(不是web目录)所有到anpm/web/assets下