Build Node.js developed environment on Windows 7

installation windows-nvm

Download windows-nvm from https://github.com/coreybutler/nvm-windows/releases and install it.

Usage:

  • nvm version : show version
  • nvm list : show available node version
  • nvm uninstall: uninstall a specific node version
  • nvm use: use a specific node version
  • … see here

installation node

install stable: nvm install latest

then show available node versions: nvm list

select a specific version from available list : use xx

npm using taobao registry

  • temporary using
1
npm --registry https://registry.npm.taobao.org install express
  • permanent using
1
npm config set registry https://registry.npm.taobao.org

or using cnpm instead of npm

1
2
3
npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install express
  • testing:
1
2
3
npm config get registry
# or
npm info express

configuration build key map in Sublime-text 3

Open Sublime Text 3, then ctr+shift+p input pci call out Package control install package window and search Node.js package](https://github.com/tanepiper/SublimeText-Nodejs)

Enjoy it!