Windows 7 搭建 nodejs、npm、express 环境

准备工作:

  1. 下载nodejs (exe format)(http://nodejs.org/)
  2. 下载npm(zip format)(http://nodejs.org/dist/npm/)

开始安装

  1. Make a clean directory (for example "D:Program Files odejs") and add that directory to your system's PATH variable
  2. Put the downloaded node.exe file to the directory you made
  3. Unpack the downloaded npm-xxx file to the same directory
  4. Open cmd command window in the directory  of  "D:Program Files odejs", execute npm install express -g
  5. Done.
原文地址:https://www.cnblogs.com/RobertC/p/3546674.html