はじめに
node.jsを触ってみたいと思い現在勉強中です。
同じことでつまずいているひとがいる(かも)と思ったので
つまずいたことを追記していきます。
nodist distでエラーが出る。
バージョン管理ツールを入れると便利、windowsならnodistという記事をみたので
nodistをインストール、 nodist distというコマンドを実行時に以下のエラーが発生
nodist dist
Could not read response for https://nodejs.org/dist/index.json
Could not read response for https://iojs.org/dist/index.json
Could not read response for https://nodejs.org/dist/index.json.
Sorry.
proxyを設定して解決
set http_proxy=
express -- version が実行できない
導入サイトを見て
npm install -g express
を実行して、
express --version
を実行しても
'express' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
とでてバージョンが出てこない。
expressだけでなくexpress-generatorもインストールしないとだめらしい。
npm install -g express-generator
でインストールしたら上手くいった。
expressのサンプルが起動できない
node app.js
を実行しても何も起こらない。
npm start
で実行できた。