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
The same issue occurred for me on FreeBSD after I tried to update a really outdated node installation.
After removing node and npm packages (pkg delete node8-8.16.2
) I had to manually remove /usr/local/lib/node_modules
directory (some npm dependencies had been left behind and that caused the problem).