nvm + npm + nrm + angular environment


windows download nvm install
https://github.com/coreybutler/nvm-windows/releases

Extract to:
nvm_noinstall.zip to extract such as d: \ devel \ nvm

The right to run as an administrator install.cmd
copy setting.txt, copied to d: \ devel \ nvm
modification:
root: d: \ devel \ nvm
path: d: \ devel \ nodejs
Arch: 64-
Proxy: none

Environment variables:
NVM_HOME: D: \ devel \ NVM
NPM_HOME: D: \ devel \ NVM \ NPM
NVM_SYMLINK: D: \ devel \ NodeJS
the PATH:% NVM_HOME%;% NPM_HOME%;% NVM_SYMLINK%

Installation NodeJS
NVM the install v10.15
NVM LS
Node -v
mounted NPM
NVM the install -g NPM
NPM -v
mounted NRM
NPM the install NRM = -g --registry HTTPS: //registry.npm.taobao.org

nrm ls
let npm that use Taobao mirror
nrm use taobao

Gitlab download from the web
into the web, install dependencies
npm install
install cli Angular
npm install -g @ Angular / cli
compile the client
ng build
results under dist / web directory, web directory under copy (not the web directory) to all anpm / web / assets under

 

Guess you like

Origin www.cnblogs.com/dablyo/p/11609182.html