diff --git a/bin/omarchy-npx-install b/bin/omarchy-npx-install index 2ec926d91e..a16a9e86e9 100755 --- a/bin/omarchy-npx-install +++ b/bin/omarchy-npx-install @@ -18,7 +18,13 @@ mkdir -p "$HOME/.local/bin" cat > "$HOME/.local/bin/$command" </dev/null + node_root="\$(mise where node@latest)" +fi + +export PATH="\$node_root/bin:\$PATH" +exec "\$node_root/bin/npx" --yes $package "\$@" EOF chmod +x "$HOME/.local/bin/$command" diff --git a/migrations/1776348723.sh b/migrations/1776348723.sh new file mode 100644 index 0000000000..8900c9c3d3 --- /dev/null +++ b/migrations/1776348723.sh @@ -0,0 +1,3 @@ +echo "Pin npx wrappers to the matching mise node runtime" + +source "$OMARCHY_PATH/install/packaging/npx.sh"