I was trying to npm install a package and my terminal said to
sudo chown -R 501:20 “/Users/user/.npm
Now when I try to npm install a package I get the error:
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The “paths[1]” argument must be of type string. Received undefined
I am trying to get it to a point that I can install npm packages again. I tried making a new json file and it did not work.
New contributor
user24775497 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.