我正在使用GoCD界面进行Angular部署配置。我确实配置了npm install
,但是在尝试执行如下构建命令后,却抛出了
请确保可以在此代理上执行[/ usr / local / lib / node_modules / @ angular / cli / bin / ng构建]。
/usr/local/bin/ng build --configuration=qa
请检查以下控制台输出。 (如果我直接在我的机器上执行以上操作,则可以正常工作)
注意:我已经在本地Mac中配置了GoCD。
任何帮助将不胜感激。
[go] Task: "/usr/local/lib/node_modules/@angular/cli/bin/ng build" --configuration=qatook: 0.5s
Error happened while attempting to execute '/usr/local/lib/node_modules/@angular/cli/bin/ng build --configuration=qa'.
Please make sure [/usr/local/lib/node_modules/@angular/cli/bin/ng build] can be executed on this agent.
[Debug Information] Environment variable PATH: /usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[go] Task status: failed, took: 0.5s
[go] Current job status: failed