0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

wsl2のインストールを諦めて、nuxtをインストール

Last updated at Posted at 2020-08-06

2020年9月12日。できる様になっていました!
顛末はこちらにまとめた!
https://qiita.com/fumi-m/items/e950bc6f0d048b6e7bb5

windows 10 version 2004をインストールする

以下、2020年8月7日時点の状況・・

  1. windows updateを開く
    image.png

  2. 詳細情報をクリックする

  3. 遷移先の https://docs.microsoft.com/ja-jp/windows/release-information/status-windows-10-2004 から、Windows 10, version 2004 is new availbel のリンクをクリックする
     image.png

  4. そこによると、windows update の「更新プログラムのチェック」をクリックすることで始まるとのこと・・

  5. しばらく待つと「ダウンロードとインストール」が選択できる様になる。。と書いてあったけど、「今すぐ再起動する」が強制的に必要になった。。。

さて、問題無く再起動できるかな、どきどき、、

image.png

何も起きなくてほっとした。。?

再起動も問題無く行われたーって、ふたたび
win+R → コマンド winver でバージョンを調べても、verion1903 のままだった。。
image.png

記事をよく読むと、互換性の問題があったり更新に問題がある場合は更新が止まるらしいですね。。

surface 6でも無理なのかな。。?

で、 一旦wsl2の導入は諦めて、https://docs.microsoft.com/ja-jp/windows/nodejs/setup-on-wsl2 にしたがって先に行きます

  1. ubuntu 16.04 では過去のバージョンのnodejsを削除することが必要らしい。といっても、node --version で何も出てこない

  2. 念のため https://docs.microsoft.com/ja-jp/windows/nodejs/setup-on-wsl2 としても、インストールされていないとでました。
    image.png

  3. sudo apt-get install curl → これは導入済みだったのでupdate無しで終了

  4. nvm をインストール curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

  5. nvm ls でインストール済みモジュールを確認
    image.png

  6. nvm install node を実行

  7. Node.jsの安定したLTSリリース()をインストール nvm install --lts

  8. node --version で確認→インストール完了!

  9. yarn install 使用とすると、'sudo apt install cmdtest'を実行しろと言われたけど、そのまま続けたらyarn install で失敗したので、そこは無視して下のコマンドを実行した方が良さそう

  10. (もし、cmdtestインストール済みならば、 sudo apt remove cmdtest でアンインストール

  11. 'curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -'

  12. 'echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list`

  13. sudo apt-get update

  14. sudo apt-get install yarn

  15. で、yarn installが上手くいきました!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?