E2D3を実行するためにnpm install -g e2d3を実行したらエラーになった。

$ npm install -g
-bash: npm: command not found

対応

npmが必要なのでインストール

参考

[Mac] Node.js と npm をインストールする方法 [Homebrew]

手順

  1. brew install nodeを実行してnpmインストール
  2. node -vを実行してバージョンを確認
  3. 再度 npm install -g e2d3 を実行

実行結果

$  brew install node
==> Downloading https://homebrew.bintray.com/bottles/node-5.9.0.yosemite.bottle.
######################################################################## 100.0%
==> Pouring node-5.9.0.yosemite.bottle.tar.gz
==> Caveats
Please note by default only English locale support is provided. If you need
full locale support you should:
  `brew reinstall node --with-full-icu`

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/node/5.9.0: 3,861 files, 35.7M

$ node -v
v5.9.0
$ npm install -g e2d3
/usr/local/bin/e2d3 -> /usr/local/lib/node_modules/e2d3/bin/e2d3

> e2d3@0.6.4 postinstall /usr/local/lib/node_modules/e2d3
> (node bin/test-env-global) || (bower prune && bower update && gulp build --release)

/usr/local/lib
└─┬ e2d3@0.6.4 
  ├─┬ body-parser@1.14.2 
  │ ├── bytes@2.2.0 
  │ ├── content-type@1.0.1 
  │ ├─┬ debug@2.2.0 
  │ │ └── ms@0.7.1 
  │ ├── depd@1.1.0 
  │ ├─┬ http-errors@1.3.1 
  │ │ ├── inherits@2.0.1 
  │ │ └── statuses@1.2.1 
  │ ├── iconv-lite@0.4.13 
  │ ├─┬ on-finished@2.3.0 
  │ │ └── ee-first@1.1.1 
  │ ├── qs@5.2.0 
  │ ├─┬ raw-body@2.1.6 
  │ │ ├── bytes@2.3.0 
  │ │ └── unpipe@1.0.0 
  │ └─┬ type-is@1.6.12 
  │   ├── media-typer@0.3.0 
  │   └─┬ mime-types@2.1.10 
  │     └── mime-db@1.22.0 
  ├── colors@1.1.2 
  ├─┬ commander@2.9.0 
  │ └── graceful-readlink@1.0.1 
  ├── connect-livereload@0.5.4 
  ├─┬ cors@2.7.1 
  │ └── vary@1.1.0 
  ├─┬ express@4.13.4 
  │ ├─┬ accepts@1.2.13 
  │ │ └── negotiator@0.5.3 
  │ ├── array-flatten@1.1.1 
  │ ├── content-disposition@0.5.1 
  │ ├── cookie@0.1.5 
  │ ├── cookie-signature@1.0.6 
  │ ├── escape-html@1.0.3 
  │ ├── etag@1.7.0 
  │ ├── finalhandler@0.4.1 
  │ ├── fresh@0.3.0 
  │ ├── merge-descriptors@1.0.1 
  │ ├── methods@1.1.2 
  │ ├── parseurl@1.3.1 
  │ ├── path-to-regexp@0.1.7 
  │ ├─┬ proxy-addr@1.0.10 
  │ │ ├── forwarded@0.1.0 
  │ │ └── ipaddr.js@1.0.5 
  │ ├── qs@4.0.0 
  │ ├── range-parser@1.0.3 
  │ ├─┬ send@0.13.1 
  │ │ ├── destroy@1.0.4 
  │ │ └── mime@1.3.4 
  │ ├── serve-static@1.10.2 
  │ ├── utils-merge@1.0.0 
  │ └── vary@1.0.1 
  ├─┬ js-yaml@3.4.6 
  │ ├─┬ argparse@1.0.7 
  │ │ └── sprintf-js@1.0.3 
  │ ├── esprima@2.7.2 
  │ └── inherit@2.2.3 
  ├─┬ morgan@1.6.1 
  │ ├── basic-auth@1.0.3 
  │ ├── depd@1.0.1 
  │ └── on-headers@1.0.1 
  ├── node-watch@0.3.5 
  ├── open@0.0.5 
  ├── semver@5.1.0 
  └─┬ tiny-lr@0.2.1 
    ├─┬ faye-websocket@0.10.0 
    │ └─┬ websocket-driver@0.6.4 
    │   └── websocket-extensions@0.1.1 
    ├── livereload-js@2.2.2 
    └── qs@5.1.0