1npm view <package> versions // lets see what versions of package are available
2npm install <package>@<version> // install desired version. Remember about flags which maybe you want to use (eg. -g for global)
3
4// example for package 'express'
5npm install express@4.17.1