1
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?

More than 3 years have passed since last update.

Cloud Shellの環境でNodeバージョンを14に更新してみた

Posted at

Cloud Shell環境に用意しているNodeのバージョンは12だったので、14に更新したくて、ネット上でやり方を調べてできましたが、ハマったことをメモします。

Node 情報確認

>node --version
12.14.1

>which node
/usr/local/nvm/versions/node/v12.14.1/bin/node

nvmでの更新が失敗

>nvm install 14
nvm: command not found

解決策

同じ問題に遭遇した人はstackoverflowにもいました。
その方の解決策を参考にしました。
How to update node version on Google Cloud Shell

>source /google/devshell/bashrc.google
>nvm install 14

上記でNodeのバージョンを14に更新できました。

1
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
1
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?