0
0

More than 5 years have passed since last update.

【Mac】npmからexpressをDLしたが環境変数が通っていない事象を解決

Posted at

環境

  • macOS High Sierra 10.13.6
  • npm 6.4.1
  • node v10.12.0
  • express 4.16.0

事象

$ npm install -g express
...
$ which express // 環境変数通っているはずだが通らない.

npm listをたたくと存在はする.下手に環境変数通して余計に事が面倒になるのは面倒だしどうしよう...

解決方法

  • express-generator パッケージをDL
$ npm install -g express-generator
...
$ which express // 通った!

今回は とにかくコード書きたい が主なため, generatorをインストールしたらいけるかも?と思いやってみたらいけた. とにかく環境周りに時間をかけたくないので原因調査はせず.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0