Created
September 11, 2017 10:03
-
-
Save sifue/353ab724c8b521894b71e8a7d9a207ea to your computer and use it in GitHub Desktop.
Windows上のVirtualBoxの共有フォルダでnpm installをするとError: ETXTBSYが出る場合にそれを回避するコマンド
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf ./node_modules && mkdir -p ~/workspace_noshared/`basename \`pwd\``/node_modules && ln -s ~/workspace_noshared/`basename \`pwd\``/node_modules ./node_modules |
長いですが、プロジェクトフォルダ内で全部実行して、npm install してみてください。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
~/workspace
の共有フォルダ上ではなく、共有してない~/workspace_noshared
フォルダ上にインストールできるようにシンボリックリンクを貼ります。