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
run script to check for update
sudo npm install -g npm-check-updates
and later update using sudo npm
sudo npm