I am using reactjs and am unable to install any packages using npm install
. The error message I\'m getting is :
npm ERR! Cannot read property \'reso
Anyone having this issue and have scrolled this far, if you are installing node manually and you have nvm
installed then this might be the issue, don't do it manually, and don't uninstall nvm to fix the issue, just let nvm install the version for you rather than doing it manually, if you don't have nvm installed and you are lost trying upgrading/downgrading node/npm versions, then install nvm
and let it handle all these things for you.
Use nvm install x.x.x
, then nvm use x.x.x
, and everything worked just fine.
more about nvm