Repository navigation
🔧 Node.jsの版管理をnodenvからmiseに切替 - #4
Merged
Merged
Conversation
nodenv は .node-version の `22` のような系列指定を解決できず、clinial-co-jp (.node-version = 22) や cohort-explorer (.nvmrc = 22) で node が未導入エラーになる。 repo ごとの版指定 (.node-version / .nvmrc、系列指定を含む) に対応するため mise に切り替える。 - Brewfile: nodenv を外し mise を追加 - .config/mise/config.toml を新設 (copy.conf で ~/.config/mise/config.toml へ)。 idiomatic_version_file_enable_tools = ["node"] で .node-version / .nvmrc を読み、 not_found_auto_install = false で版の導入を Nodefile 経由に限定する - Nodefile: 各行を `mise install node@<版>` に渡す。24.19.0 と 22 を列挙 - lib/node.sh: nodenv install --skip-existing を mise install に変更 - fish / zsh / bash の PATH: ~/.nodenv/shims を ~/.local/share/mise/shims に置換。 版指定の無い場所では shims が Homebrew の node へ fallback する - docs/architecture.md と pkg-add skill の nodenv の記述を mise に更新 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
PR #3 で導入した nodenv は
.node-versionの22のような系列指定を解決できず(~/.nodenv/versions/<名前>の完全一致のみ)、clinial-co-jp(.node-version=22)と cohort-explorer(.nvmrc=22)でnodeが未導入エラーになる。repo ごとの版指定(.node-version/.nvmrc、系列指定を含む)に対応するため、版管理を mise に切り替える。変更内容
Brewfilebrew 'nodenv'を外しbrew 'mise'を追加.config/mise/config.toml(新設、copy.confで~/.config/mise/config.tomlへ)idiomatic_version_file_enable_tools = ["node"](mise は.node-version等を既定で読まない)、not_found_auto_install = false(版の導入は Nodefile 経由に限定)Nodefilemise install node@<版>に渡す。24.19.0(dot-request-dashboard)と22(clinial-co-jp、cohort-explorer)を列挙lib/node.shnodenv install --skip-existingをmise install node@<版>に変更。mise 未導入ならスキップ~/.nodenv/shimsを~/.local/share/mise/shimsに置換docs/architecture.md、.claude/skills/pkg-add/SKILL.mdshims 方式のまま(
mise activateは使わない)にしたのは、zsh の対話設定~/.zshrcを dotfiles が管理しておらず、script からのnode実行にも同じ解決を効かせるため。版指定の無い場所では mise の shims が PATH 上の次のnode(Homebrew の v26.7.0)へ fallback する(mise docs のnot_found_system_fallback、既定 true)。確認結果
./lint.sh通過(ShellCheck / fish / tmux / Spotlight / TOML / JSON / plist)merge 後の適用(live 環境の変更、ユーザー確認後に実行)
nodenv の撤去(
brew uninstall nodenv node-build、~/.nodenvの削除)はbrew bundleでは行われないため、ユーザーの操作として別途行う。🤖 Generated with Claude Code