Delete and reset the prefix npm config delete prefix Change the version number with the one indicated in the error message. npm config set prefix $NVM_DIR/versions/node/v12.8.0