以下の内容はhttps://anton0825.hatenablog.com/entry/2014/10/17/000000より取得しました。


yo angularを実行すると、「You don't seem to have a generator with the name angular installed」エラー

generator-angularはインストールしているのになぜ・・・と思いyo doctorを実行すると 以下のメッセージが出た。

[Error] NPM root value is not in your NODE_PATH
  [info]
    NODE_PATH = /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
    NPM root  = /home/vagrant/npm/lib/node_modules

  [Fix] Append the NPM root value to your NODE_PATH variable
    Add this line to your .bashrc
      export NODE_PATH=$NODE_PATH:/home/vagrant/npm/lib/node_modules
    Or run this command
      echo "export NODE_PATH=$NODE_PATH:/home/vagrant/npm/lib/node_modules" >> ~/.bashrc && source ~/.bashrc

つまりNODE_PATHがおかしいと。 インストラクションに従って以下を.zshrcに追加すると直った。

export NODE_PATH=$NODE_PATH:/home/vagrant/npm/lib/node_modules

yo doctor便利だな−。

参考:




以上の内容はhttps://anton0825.hatenablog.com/entry/2014/10/17/000000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14