Friday, 21 August 2020

Wrong node version is being used for global install

I have installed stable node and the corresponding latest npm version using nvm. The paths for both are as follows:``` ❯ which npm ~/.nvm/versions/node/v14.8.0/bin/npm❯ which node ~/.nvm/versions/node/v14.8.0/bin/node ```When I try to install yarn with npm install -g yarn the package is being installed to the v14.7.0 directory which I haven't even installed.~/.nvm/versions/node/v14.7.0/bin/yarn -> ~/.nvm/versions/node/v14.7.0/lib/node\_modules/yarn/bin/yarn.jsEDIT:There was a .npmrc file in the home folder which pointed to the previous verison.

Submitted August 22, 2020 at 06:11AM by gray-cell

No comments:

Post a Comment