npm config delete prefix
It turns out that if you are an NVM package (fantastic tool for switching between nodejs versions) user in macOS you will come across at some point to the following error message when you open a bash or zsh terminal npm config delete prefix or nvm use –delete-prefix