Closed alextrastero closed 7 years ago
It looks like it's switching fine in your image?
yes, node version switching fine, but npm version not persisting, I eventually switch from n
to nvm
and that solved it
It's also possible that you updated npm
for that install of node
.
Right - npm comes with node, so every time you switch node versions, you're switching npm versions too. It's not supposed to persist.
Yes, but when you switch back to the previous project shouldn't it restore to the npm version installed with THAT node version? (like the screenshot shows) :)
Ah, your screenshot wasn't clear - are you saying the node version (for which npm was v5.4.1) was 6.11.0?
I believe that n
would have the upgrade of npm
persist, but I haven't confirmed that.
When switching from projects with different node-versions avn switches fine but my npm version doesn't switch, what am I doing wrong?