Node.js¶
Installation¶
Download and install from here.
NPM¶
Commands¶
npm view {module_name} versions # view all version of specified module
npm install {module_name}@{version} # install specified version of a module
Mirrors¶
# specify mirror manually
npm --registry https://registry.npm.taobao.org install {module_name}
# configure mirror permanently
npm config set registry https://registry.npm.taobao.org
# verify
npm config get registry