wbyoung / avn

Automatic Version Switching for Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm version not restoring

alextrastero opened this issue · comments

When switching from projects with different node-versions avn switches fine but my npm version doesn't switch, what am I doing wrong?

screen shot 2017-09-13 at 12 26 35

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.