Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node.jsのインストール方法を最新のものに差し替え #308

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/docs/install/ubuntu-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,21 @@ sudo adduser --disabled-password --disabled-login misskey
Node.jsは、サーバーサイドJavaScript環境であり、Misskeyの基本的な実行環境である。

```sh
sudo apt install -y curl
sudo apt-get update

curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y ca-certificates curl gnupg

sudo apt install -y nodejs
sudo mkdir -p /usr/share/keyrings

curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/nodesource.gpg

NODE_MAJOR=20

echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

sudo apt-get update

sudo apt-get install nodejs -y

# Node.jsがインストールされたので、バージョンを確認する。
node -v
Expand Down