• The added line is THIS COLOR.
  • The deleted line is THIS COLOR.
[[Node.js]] > [[nodenv]]

- Linux(Ubuntu)にnodenvを導入する方法
--  https://blog.mintsu-dev.com/posts/2020-07-22-install-nodenv-linux/

>
$ git clone https://github.com/nodenv/nodenv.git ~/.nodenv
>
$ echo 'export PATH="$HOME/.nodenv/bin:$PATH"' >> ~/.bashrc
>
$ echo 'eval "$(nodenv init -)"' >> ~/.bashrc
>
$ curl -fsSL https://github.com/nodenv/nodenv-installer/raw/master/bin/nodenv-doctor | bash

>
$ nodenv install -l


* nodenv-update [#g741ad73]

- nodenvをupdateして新しいバージョンのNode.jsをインストールする
--  https://qiita.com/turara/items/6b7f4a8e3770a7074072

>
nodenv install --list
% nodenv install --list

>
mkdir -p "$(nodenv root)"/plugins
% mkdir -p "$(nodenv root)"/plugins
>
git clone https://github.com/nodenv/nodenv-update.git "$(nodenv root)"/plugins/nodenv-update
% git clone https://github.com/nodenv/nodenv-update.git "$(nodenv root)"/plugins/nodenv-update
>
# アップデート
nodenv update
% nodenv update

*. [#ob091455]

- nodenvでNode.jsのバージョンを切り替える
--  https://zenn.dev/donchan922/articles/b08a66cf3cbbc5

>
git clone https://github.com/nodenv/nodenv-package-rehash.git "$(nodenv root)"/plugins/nodenv-package-rehash
>
~/.bashrc or ~/.zshrc
 - eval "$(nodenv init -)"
 + eval "$(nodenv init - --no-rehash)"


Reload   Diff   Front page List of pages Search Recent changes Backup Referer   Help   RSS of recent changes