LoginSignup
0
0

More than 1 year has passed since last update.

Vagrant で作成した VM 上で、Node 関連の処理を行うとエラー

Posted at

環境

ホストOS

  • Windows10
  • Virtualbox
  • Vagrant

ゲストOS

  • Ubuntu 18.04 LTS

発生した事象

synced_folder の設定を用いて Node アプリケーションを /vagrant/ ディレクトリにデプロイ。

npm install を実行すると、「Error: Cannot find module 'node-linux-x64/package.json'」というエラーが出た。

対処法

synced_folder への書き込みが「device is busy」ということで失敗し、そのために上記のエラーが発生していた。

コンテンツを /vagrant/ から /home/vagrant/ に移動し npm install を実行すると成功した。

Ref

エラーの文面で検索したが、解決方法を見つけることができなかった。

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