[英]Error: This command is not available when running the Angular CLI outside a workspace
[英]This command is not available when running the Angular CLI outside a workspace
我的构建不起作用并一直显示错误..这是我的 yml 文件
阶段:
图片:节点
角度构建:
标签: - A-runner
阶段:构建
脚本: - npm install --save-dev @angular/cli@latest - npm 链接 @angular/cli - ng 构建 Angularjs 工件:
路径:- ./public
我多次发生相同的错误。
因此,这些是您需要遵循的步骤。
1.npm install -g @angular/cli
2.ng新的我的应用程序
3. cd 我的应用程序
4.ng服务--打开
我错过了第三步,这就是为什么我一次又一次地收到这个错误。
如果要运行命令 ng generate component/service、ng build、ng serve,请确保您位于 my-app 文件中,或者运行 cd my-app。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.