1
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?

nodejsを最新にしよう(WSL)

Last updated at Posted at 2024-01-09

nodejsがv20を要求されているアプリを起動したいので、何も考えずapt-getでinstallしようとしたら

sudo apt install nodejs
sudo apt install npm

ってやっても

node --version
v10.19.0

で、ダメだったんだけど、これ単純な手順じゃないのね…。
https://qiita.com/tora_oba/items/2761452fe8c2b0035ba0
に則って、nを利用したらいけましたね。

ただ、最後にnode -vを利用してもbash: /usr/bin/node: No such file or directoryというメッセージがでて上手くいかなくて、VSCode再起動しないとダメだった。これに5分迷った。

参考

何故かMacばかりなのね。この界隈
https://www.trifields.jp/how-to-install-node-js-on-ubuntu1804-3544

1
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
1
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?