angular :我想要一个 angular 构建。但是有一个错误
angular : I want an angular build. But there's an error
我想在服务器上上传我的 Angular 项目。
但是,“ng build”会导致错误。
**The build command requires to be run in an Angular project, but a project definition could not be found.**
您似乎试图 运行 ng build
在 angular 项目之外。导航到您的项目根目录,然后重试。来自 docs:
Must be executed from within a workspace directory.
我想在服务器上上传我的 Angular 项目。 但是,“ng build”会导致错误。
**The build command requires to be run in an Angular project, but a project definition could not be found.**
您似乎试图 运行 ng build
在 angular 项目之外。导航到您的项目根目录,然后重试。来自 docs:
Must be executed from within a workspace directory.