LoginSignup
0
0

More than 5 years have passed since last update.

generator-angular-fullstackでnpm installしてこけた時の対処法【Mac】

Posted at

以下のポイントをチェックしてみてください。

gulpがちゃんとインストールされているか

以下のコマンドでインストールしましょう。
npm install --global gulp

Pythonのバージョンが2.X系になっているか

python --versionでバージョンを確認して、3.X系になっていれば、2.X系に切り替えましょう。
そもそも入っていなければ、以下を参考に。
> Pythonインストール(Mac編)
pyenvが入っていれば、以下のコマンドで特定のローカルのpythonバージョンを切り替えることができます。
pyenv local 2.7.5

node-gypがインストールされているか

以下の手順で、node-gypをインストールしましょう。
npm install -g node-gyp
それでもエラーを吐くようなら、rebuildしましょう。
npm rebuild -g node-gyp

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