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?

Windowsにmiseを導入する

Posted at

はじめに

Windowsにmiseを導入したので手順をメモしておきます。
詳しくは公式サイトをご確認ください。

環境

  • Windows11
  • Windows Powershell 5.1
  • mise 2025.8.21 windows-x64 (2025-08-27)

手順

1. インストール

> winget install jdx.mise

完了したらバージョンを確認し、正常にインストールできているか確認します。

> mise -v
              _                                        __
   ____ ___  (_)_______        ___  ____        ____  / /___ _________
  / __ `__ \/ / ___/ _ \______/ _ \/ __ \______/ __ \/ / __ `/ ___/ _ \
 / / / / / / (__  )  __/_____/  __/ / / /_____/ /_/ / / /_/ / /__/  __/
/_/ /_/ /_/_/____/\___/      \___/_/ /_/     / .___/_/\__,_/\___/\___/
                                            /_/                 by @jdx

2. Activate

mise activateを使用する方法もあるようですが、今回はshimsを使用しました。
ターミナルに以下を貼り付けて実行します。

$shimPath = "$env:USERPROFILE\AppData\Local\mise\shims"
$currentPath = [Environment]::GetEnvironmentVariable('Path', 'User')
$newPath = $currentPath + ";" + $shimPath
[Environment]::SetEnvironmentVariable('Path', $newPath, 'User')

3. 再起動

インストールを実行したターミナルを全部閉じてから再度開きます。

ターミナルは確実に閉じましょう。
筆者はここで別のターミナルを開きっぱなしにしており、上手く再起動できておらず、原因をあれこれ探して時間を浪費しました。。

4. 確認

> mise doctorを実行して正常に動作するか確認します。

おわりに

再起動は確実に実行しましょう。。

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?