跳转至

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

References

  1. Node.js Documentation
  2. API 文档 | Node.js 中文网
  3. Node.js 教程 | 菜鸟教程
  4. npm 镜像及配置方法 - 放逐、青春 - 博客园