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
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.