"Permission denied" when running macOS installer from command line
What worked for me is:

sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall --volume /Volumes/macOS --converttoapfs NO


As it will then show you the license to review.