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!

本文标题:Build Node.js developed environment on Windows 7

文章作者:Pylon, Syncher

发布时间:2018年01月25日 - 13:01

最后更新:2023年03月11日 - 17:03

原始链接:https://0x400.com/experience/guide/dev-sublime-text-3-build-node/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。