LoginSignup
1
0

More than 1 year has passed since last update.

ubuntu 22.04LTSで最新のnodejsぶち込む方法

Posted at

ubuntu 22.04LTSでは

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs

をしても12ver止まりなので
12verから16or最新verにアップデートする方法

sudo npm install -g n

最新版のNode.jsのコマンド

sudo n latest

最新のLTS版のNode.jsのインストール

sudo n lts

今のnodeのver確認方法

node -v

今のnpmの確認方法

npm -v

最新のnodeやnpmこれで行けると思います。

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