LoginSignup
3
1

More than 5 years have passed since last update.

npm -g install に失敗した時の解決方法

Last updated at Posted at 2019-03-11

なぜかnpm -g installに失敗する
解決法が記載されていたので、自分的にも備忘録として記録

参考URL
【備忘録】npm -g install に失敗する - Qiita

$ mkdir ~/.npm-global
$ npm config set prefix '~/.npm-global'
$ echo ' export PATH=~/.npm-global/bin:$PATH' >> ~/.bash_profile
$ source ~/.bash_profile

上記を入力する事で解決

npm -g install xxxに成功!!

3
1
1

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
3
1