Node error Cannot read property 'resolve' of undefined

前端 未结 8 2464
遇见更好的自我
遇见更好的自我 2021-02-18 23:28

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         


        
8条回答
  •  有刺的猬
    2021-02-19 00:11

    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

提交回复
热议问题