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?

ラズパイにnode.jsのインストール&GitHubのクローン

Posted at

1.ラズパイ3以降のビルド済node.jsダウンロード時に選択するアーキテクチャ

1-1.ターミナルで以下を実行
uname -m

1-2.出力:
・aarch64 → ARM64を選択
・armv7l → ARMv7を選択

2.Linux用の Node.js🄬v22.13.1(LTS) と npm を fnm を使ってダウンロードする
https://nodejs.org/ja/download/

2-1.ターミナルで以下を実行

fnmをダウンロードしてインストールする:

curl -o- https://fnm.vercel.app/install | bash

Node.jsをダウンロードしてインストールする:

fnm install 22

2-2.「bash:fnm:コマンドが見つかりません」と出た時
source ~/.bashrc #fnmが認識されるようになる

2-3.確認
node -v
npm -v
fnm --version

3.GitHub CLIのインストール
sudo apt install gh

3-1.確認
gh --version

4.GitHubへログイン

4-1.ターミナルで以下を実行
gh auth login

4-2.ターミナルで以下を入力
・What account do you want to log into? → GitHub.com
・what is your preferred protocol for Git operations? → HTTPS
・Authenticate Git with your GitHub credentials? → Yes
・How would you like to authenticate GitHub CLI? → Login with a web browser

エンターを押すとGitHubのログインページが立ち上がるのでログインする

4-3.ターミナルに表示されたワンタイムコードを入力する
First copy your one-time code: ここに表示された英数字

5.GitHubソースコードのクローン
git clone Githubのアドレスを入力

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?