LoginSignup
2
2

More than 3 years have passed since last update.

npmでのモジュールのインストールしたときに失敗した時の対処法

Posted at

はじめに

Windows上でVirtualboxを使って開発環境を作ったとき
共有フォルダ設定を使ったパス上でnpm install...してるとエラーがでた。
これの対処法をメモ

参考

によると、
 Windows環境(と、Windowsホストの共有フォルダにVagrantなどからnpmを実行した場合)では、
 npm installで以下のエラーが発生することがある。
…だそうです。

自分の環境は、Windows+Virtualbox+Vagrantなのでまんま同じシチュエーションだった。。。

やること

npm install [モジュール名] --no-bin-links
という感じで末尾にオプションを作る

実際は↓↓な感じ。twitモジュールをインストールするときはこうする。

$ npm install twit --no-bin-links
2
2
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
2
2