You have to be inside an angular-cli project in order to use the serve command --angular4

NoSuchKey