In order to install npm version 5.8.0, run the following install command from the command line, and check the version with npm -v:
npm install -g npm@5.8.0 npm -v