Node error Cannot read property 'resolve' of undefined

前端 未结 8 2584
遇见更好的自我
遇见更好的自我 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:28

    So I have recently faced a very similar problem when I was trying to run a react project in my Windows 10 x64 PC. Although I installed Node.js v12.13.0 (+ npm v6.12.0) x64; I couldn't execute npm install command, as it would give me this same error (Cannot read property 'resolve' of undefined).

    Then according to this comment, I uninstalled the x64 version of Node.js and then installed the x86 version. After this, I could execute the npm install command successfully.

    0 讨论(0)
  • 2021-02-19 00:29

    Instead of version 12.18.3 install version https://nodejs.org/dist/v10.15.3/node-v10.15.3-x64.msi . It will work perfectly.

    0 讨论(0)
提交回复
热议问题