Open gullpong opened 1 week ago
seems to be working fine for me:
❯ mise ls node
Tool Version Config Source Requested
❯ mise link node@18.0.0 ~/.nodes/18.0.0
❯ mise ls node
Tool Version Config Source Requested
node 18.0.0 (symlink)
❯ mise use node@18.0.0
mise /tmp/mise.toml tools: node@18.0.0
❯ mise ls node
Tool Version Config Source Requested
node 18.0.0 (symlink) /tmp/mise.toml 18.0.0
It never works for me....
after running mise link
this is how the mise local shared dir looks like:
but if I run mise use node@12.16.0
, it keeps downloading the node tar and trying to compile it and then eventually fails.
jinyong_lee@Jinyongs-MacBook-Pro:~/airlab/repos/deck jlee--exec-rerun-update$ mise use node@12.16.0
mise node@12.16.0 verifying node-v12.16.0.tar.gz 39.50 MiB/49.86 MiB (0s)
this is very very strange as I already have installed all required node versions via nvm
.
jinyong_lee@Jinyongs-MacBook-Pro:~/airlab/repos/deck jlee--exec-rerun-update$ nvm ls
-> v12.16.0
v18.20.4
default -> 18 (-> v18.20.4)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v18.20.4) (default)
stable -> 18.20 (-> v18.20.4) (default)
lts/* -> lts/iron (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2 (-> N/A)
lts/hydrogen -> v18.20.4
lts/iron -> v20.18.0 (-> N/A)
Clearly mise doesn't detect the linked node version:
$ mise ls -i
Tool Version Config Source Requested
java corretto-11.0.25.9.1
node 18.17.1
node 18.20.4 (symlink)
python 2.7.18
python 3.9.20
python 3.10.15
ruby 3.1.6
$ mise ls -m
Tool Version Config Source Requested
node 12.16.0 (symlink) ~/airlab/repos/deck/.nvmrc 12.16.0
I wonder "where" does this node installation information come from for mise, if there's any state being maintained. I believe that state is somehow corrupted/broken.
Describe the bug I'm running on M3 MacBook and I have an issue with installing node@12.16.0 via
mise install
. So I've used installing it bynvm
which worked fine. And then I ranmise link node@12.16.0 <node binary path returned by nvm which>
. andmise ls
command shows it correctly:But I tried to use it by
mise use node@12.16.0
then it removes the symlink and tries to reinstall the node version. Also,mise doctor
command shows it's still missing even if it's linked.Because I can't run
mise use
command, switching node version via nvm in another place affects the version of node in this repo.To Reproduce
Expected behavior
mise doctor
andmise use
should observe what's set up bymise link
.mise doctor
outputAdditional context N/A