npm
npm config set prefix “D:\nodejs\node_global”
npm config set cache “D:\nodejs\node_cache”
npm prefix -g
yarn
yarn config set registry https://registry.npm.taobao.org
yarn config set cache-folder “D:\software\Yarn\Cache”
yarn config set global-folder “D:\software\Yarn\Data\global”
yarn global bin
yarn global dir
yarn cache dir