回答編集履歴

2

コマンド修正

2021/10/21 12:21

投稿

fj68
fj68

スコア752

answer CHANGED
@@ -18,7 +18,7 @@
18
18
  # nodebrewをインストール
19
19
  curl -L git.io/nodebrew | perl - setup
20
20
  # 設定を.bashrcに追記
21
- echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> .bashrc
21
+ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc
22
22
  # 設定を反映
23
23
  source ~/.bashrc
24
24
  # nodebrewで最新のnodeをインストール

1

参考記事を追加

2021/10/21 12:21

投稿

fj68
fj68

スコア752

answer CHANGED
@@ -12,6 +12,8 @@
12
12
 
13
13
  この方法であれば管理者権限も不要ですし、フォルダによってnpmのバージョンを分けたり、最新のnodeを使うことができます。
14
14
 
15
+ [nodebrewのインストールと使い方 - kamoqq.info](https://kamoqq.info/post/how-to-use-nodebrew/)
16
+
15
17
  ```sh
16
18
  # nodebrewをインストール
17
19
  curl -L git.io/nodebrew | perl - setup