Take a look at this answer:
https://stackoverflow.com/a/72748417/6666348
//You cannot using CLI
//Better install a specific version of Angular in a folder:
$ npm install @angular/cli@1.7.x //for anngular 5 for example
//And then
$ ng new angular_5_app
//or change angular/cli and angular versions in the package.json