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.

nodeをfedora37にインストール

0
Posted at

概要

公式のレポジトリを追加すればインストールできそうと思ったけれど、公式では36までしか対応していない。
そのため、公式サイトのLTSのバイナリをダウンロードしてそれをインストールした。

インストール

ダウンロードしたディレクトリへ移動して解凍。ダウンロードはブラウザから行った。

tar Jxf node-v18.16.0-linux-x64.tar.xz

私の場合はこの解凍されたディレクトリへのシンボリックリンクを作成し、それから解凍されたディレクトリ内のbinのパスを追加するという感じにした。

ln -s /path/to/node_dir /path/to/s_link

.bash_profileの編集

export PATH="$HOME/path/to/s_link/bin:$PATH"

動作確認

以下のコマンドでバージョンを確認できた。

node -v
v18.16.0
npm -v
9.5.1
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?