I have managed to corrupt my npm install, and whenever I try to install packages using npm install, I receive error messages along these lines:
npm
npm install
Simply do sudo npm cache clean --force --unsafe-perm and npm i will go normally.
sudo npm cache clean --force --unsafe-perm
npm i