无需在服务器上安装angular cli,只需运行
npm run ng -- build
That will run the local version from your project
devDependencies
This way you can pass any flag to your local cli
npm run ng -- test,
npmrun ng -- lint, etc
您可以ng像这样传递其他标志
run ng – build –prod
More details at https://docs.npmjs.com/cli/run-script



