はじめに
miseについては既に多くの方が記事で取り上げているので、miseとは何か?は省きます。
miseを使った環境立ち上げでエラー
mise.tomlをローカルディレクトリで設定し、ツール環境を作成しようとしたら次のようなエラーが発生...
mise ERROR error parsing config file: ~/project-dev/web-app/kadai5/.mise.toml
mise ERROR Config files in ~/project-dev/web-app/kadai5/.mise.toml are not trusted.
Trust them with `mise trust`. See https://mise.jdx.dev/cli/trust.html for more information.
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
mise ERROR error parsing config file: ~/project-dev/web-app/kadai5/.mise.toml
mise ERROR Config files in ~/project-dev/web-app/kadai5/.mise.toml are not trusted.
Trust them with `mise trust`. See https://mise.jdx.dev/cli/trust.html for more information.
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
かいつまむと、怒られている理由は
miseが設定ファイルを信頼していないエラーとのことで、どうやらセキュリティの機能として知らない設定ファイル(mise.toml)を勝手に実行しないようにしてくれてるみたい。
なのでmise trustで設定ファイルを信頼するようにする必要がある
mise trust /home/path/to/mise.toml
# Output
# mise trusted /home/path/to
蛇足
ちゃんとドキュメントを読んでいれば詰まることもないが、最近は公式ドキュメントを読みに行かずClaudeが書き記した手順書に従ってツールインストールするせいで、しょうもないエラーを踏んでしまっている。
ちゃんと公式ドキュメントは読もうね。。
JISOUのメンバー募集中!
プログラミングコーチングJISOUでは、新たなメンバーを募集しています。
日本一のアウトプットコミュニティでキャリアアップしませんか?
興味のある方は、ぜひホームページをのぞいてみてください!
▼▼▼
https://projisou.jp