Skip to content

Instantly share code, notes, and snippets.

@sifue
Created September 11, 2017 10:03
Show Gist options
  • Save sifue/353ab724c8b521894b71e8a7d9a207ea to your computer and use it in GitHub Desktop.
Save sifue/353ab724c8b521894b71e8a7d9a207ea to your computer and use it in GitHub Desktop.
Windows上のVirtualBoxの共有フォルダでnpm installをするとError: ETXTBSYが出る場合にそれを回避するコマンド
rm -rf ./node_modules && mkdir -p ~/workspace_noshared/`basename \`pwd\``/node_modules && ln -s ~/workspace_noshared/`basename \`pwd\``/node_modules ./node_modules
@sifue
Copy link
Author

sifue commented Sep 11, 2017

~/workspace の共有フォルダ上ではなく、共有してない ~/workspace_noshared フォルダ上にインストールできるようにシンボリックリンクを貼ります。

@sifue
Copy link
Author

sifue commented Sep 11, 2017

長いですが、プロジェクトフォルダ内で全部実行して、npm install してみてください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment