0
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.

nvmで固定のNode.jsのバージョンを使わせる方法

Posted at

nvmのインストール方法からnvmの使い方について

以下が参考になる

プロジェクトで固定のNode.jsのバージョンを使わせる方法

versionを"v12.21.0"で固定する場合

$ echo "lts/*" > .nvmrc

最新のltsで固定する場合

$ echo "lts/*" > .nvmrc

nvm installの実行(初回のみ)

$ nvm install
Found '/path/to/project/.nvmrc' with version <v12.21.0>
Now using node v12.21.0 (npm v6.14.11)

nvm useの実行(初回のみ)

$ nvm use
Found '/path/to/project/.nvmrc' with version <v12.21.0>
Now using node v12.21.0 (npm v6.14.11)

参考

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