Last night I tried to update my node and npm, it seemed to have been successful, however ever since then I have been getting this same error any time I try and run any npm c
If your are on macOS, you must update the config file. You just have to enter this command in your terminal:
sudo npm i -g npm