日記2023-11-29
code:prompt
`
% brew upgrade node
Warning: node 21.2.0 already installed
% node -v
v18.13.0
% rehash
% node -v
v18.13.0
`
What's wrong? What should I do?
gpt.iconwhich node
nishio.icon% which node
/Users/nishio/.nvm/versions/node/v18.13.0/bin/node
gpt.iconThe output from which node indicates that the version of Node.js being used is managed by nvm (Node Version Manager), not Homebrew.
nvm install 21.2.0