4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Cloud9 の nodejs をバージョンアップ

Last updated at Posted at 2020-11-28

AWS Cloud9 は環境構築直後、古いnodejsのバージョンが入っていたりする。
なので自分が使いたい任意のバージョンを入れる。

# 環境を確認
$ cat /etc/system-release
Amazon Linux AMI release 2018.03

# インストール前のバージョンを確認
$ node -v
v10.23.0

$ npm -v
6.14.8

# インストール可能なバージョンを確認
$ nvm ls-remote
:
       v12.20.0   (Latest LTS: Erbium)
:

# インストール
nvm install v12.20.0
nvm alias default v12.20.0
npm update -g npm
npm install -g npm

# インストール後のバージョンを確認
$ node -v
v12.20.0

$ npm -v
6.14.9
4
3
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
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?