> Npm install cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install cnpm@7.1.0 -g --registry=https://registry.npm.taobao.org
> Get current origin
npm config get registry
> Set current origin
npm config set registry <registry url>
> Get the global path of the installed package
npm root --location=global
> Set the global path of the installed package
npm config --global set prefix '~/.npm-global'
> Get the cache path of the installed package
npm --global cache verify
> Set the cache path globally
npm config set cache C:\Devel\nodejs\npm-cache --global