Help us understand the problem. What is going on with this article?

WSL Ubuntu上でのnpmパッケージ インストール高速化

More than 1 year has passed since last update.

WSLでのnpm installとかyarnがもっさりして遅いのはWindows Defenderが原因。

高速化手順(1)

  1. 「PC設定」から「更新とセキュリティ」を開く
  2. 左メニューの「Windows セキュリティ」を選択
  3. 右の一覧から「ウィルスと驚異の防止」を選択
  4. 新規ウィンドウから「ウィルスと驚異の防止の設定」を選択
  5. 下部にある「除外」を選択
  6. 「+除外の追加」を選択
  7. 以下の「先頭ドライブ」と「ユーザー名」を自分のものに置き換えて追加

WSL Ubuntuのディレクトリパスを追加
C:\Users\ユーザー名\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc

※Ubuntu OS以外も同様の手順でOK

高速化手順(2)

高速化手順(1)の 4 以降に出る「リアルタイム保護」をオフにする。
※脆弱化するので注意

参考にしたURL

https://medium.com/@leandrw/speeding-up-wsl-i-o-up-than-5x-fast-saving-a-lot-of-battery-life-cpu-usage-c3537dd03c74

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away