メモ。Windowsでのnode.js, expressのインストール
タイトルの通り。
■nodeのインストール
http://nodejs.org/ → INSTALL
msiでインストール。
■npmのインストール
https://npmjs.org/ → DOWNLOAD → Windows Installer
msiでインストール。
■Expressのインストール
npm install express -g
→ -g でPATHとか貼ってくれる。
■アプリ作成
cd アプリ作りたいフォルダ
express -t ejs helloworld -t ejs は -e に変わったらしい
express -e helloworld
cd helloworld && npm install
■起動
node app
ブラウザで http://localhost:3000
→Express
Welcome to Express
と表示されればOK。