1
2

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.

Volta コマンド

Posted at

Volta公式
https://docs.volta.sh/guide/getting-started

以下コマンドを必要に応じて使用

# Node LTS版インストール
volta install node

# 最新バージョンをインストール
volta install node@latest

# 特定バージョンをインストール
volta install node@18.12.1

# 安定板インストール(数字のバージョン)
volta install node@18

# 各種バージョンの確認
volta list

# 管理しているものを一覧表示
volta list all

プロジェクトのバージョン固定はvolta pinを使う

# nodeのバージョン固定
volta pin node@18.12.1	

# npmのバージョン固定
volta pin npm@8.19.2

バージョン固定した際はpackege.jsonを書き換える必要あり

package.json

"volta": {
  "node": "14.17.3",
  "npm": "6.14.13"
}
1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?