#author("2020-09-23T14:14:51+09:00","default:ryuichi","ryuichi")
* Ubuntuにnで任意のバージョンをインストールする [#vc163924]
** システムのnodejsのインストール [#r8c3e40a]
sudo apt install nodejs
** nパッケージのインストール [#d800abc4]
sudo npm install n -g
** N_PREFIXの設定 [#w2c636dc]
vi ~/.bashrc
-------------------------------
export N_PRFIX=~/.n
export PATH=$N_PREFIX/bin:$PATH
-------------------------------
exec bash
** nで任意のバージョンをインストール [#n63fc219]
n ls-remote
n lts
n install 10.22.1
** 参考 [#oe18a7a3]
- https://qiita.com/seibe/items/36cef7df85fe2cefa3ea
- https://www.trifields.jp/how-to-install-node-js-on-ubuntu1604-2680