Node 记录
Ehoac Lv3

nvm

install

1
2
3
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

nvm --version

usage

1
2
3
4
5
6
7
8
9
10
nvm ls-remote

NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node

nvm install v11.11.0
or
nvm install stable

nvm ls

npm

1
2
3
4
5
6
7
8
9
10
11
npm -v

npm install -g npm

npm config ls
or
npm config list

npm config set prefix "new_path"

npm config set registry "http://registry.npm.taobao.org/"
 评论