LoginSignup
0
0

voltaをインストール【プロジェクトをUpdateしてく!-➁】

Last updated at Posted at 2023-05-22

今回行った一連の流れ

➀nodistをvoltaへ変更 ←今回ここをpick up☆
➁npm-check-updatesを導入
➂gulp-sassをgulp-dart-sassへ変更
➃bootstrapを使用したプロジェクトの場合、bootstrapのアップデート

経緯

新しいプロジェクトを任されることに。そのプロジェクトをクローンしたらnpx update-browserslist-db@latestのコマンドがnpx gulpで常にでてきてしまうことに気づき、さらに元々プロジェクトを担当していた人と開発環境が違ったためgulpファイルの追記と修正が必要になった。

以上のことから、「一連の流れ」を行うことになった。
上記の項目ごとに備忘録として記事を書くことにした。

前提

  • windows
  • nodistをパッケージマネージャーとして使用
  • bootstrapバージョン4を使用
     
    (※voltaはMacでもOKです!)
     
      
     
     

【nodistをvoltaへ変更】

※この記事は続き記事です。
 項目ごとに記事わけしているので単体でも活用していただけます。

《目次》

<voltaをインストール>===============

1.公式からインストーラーをダウンロード

windows用とMacは異なるようなので注意

ここからダウンロードページへ
スクリーンショット 2023-05-22 142856.png

インストール

Windowsは「開発者向け機能を使う」で開発者モードをオンにするようなのですが、私はしなかったと思います。どうなんでしょうか。。。

※インストール作業中「このアプリがデバイスに変更を加えることを許可しますか?」と表示されたのでそれは「はい」。

基本的には何か選択して設定することなくインストールは完了しました。
 

Voltaをインストール流れ
  • インストーラー実施
  • Next
  • Next
  • Install
  • インストール完了
     
     
     

1.voltaがインストールできているか確認し、完了!

以下はVolta 1.1.1がインストールできているのがわかる。

#コマンド
volta
#ターミナル

Volta 1.1.1
The JavaScript Launcher ⚡

    To install a tool in your toolchain, use `volta install`.
    To pin your project's runtime or package manager, use `volta pin`.

USAGE:
    volta [FLAGS] [SUBCOMMAND]

FLAGS:
        --verbose    Enables verbose diagnostics
        --quiet      Prevents unnecessary output
    -v, --version    Prints the current version of Volta
    -h, --help       Prints help information

SUBCOMMANDS:
    fetch          Fetches a tool to the local machine
    install        Installs a tool in your toolchain
    uninstall      Uninstalls a tool from your toolchain
    pin            Pins your project's runtime or package manager
    list           Displays the current toolchain
    completions    Generates Volta completions
    which          Locates the actual binary that will be called by Volta
    setup          Enables Volta for the current user / shell
    run            Run a command with custom Node, npm, pnpm, and/or Yarn versions
    help           Prints this message or the help of the given subcommand(s)

 
 
 
 
 

◆◆次回はvoltaのコマンドまとめ◆◆

次回

「voltaのコマンドまとめ【プロジェクトをUpdateしてく!-➂】」

参考URL

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