Ionic Appflow 构建失败,"Permission denied"



我正在尝试在Ionic Appflow上构建我的项目,但它一直失败。我不明白可能出了什么问题,因为我可以在本地生成和构建。

还有其他人遇到过这样的问题吗?

sh: 1: ng: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! aardraapp@0.0.1 build: `ng build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the aardraapp@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-24T20_45_42_679Z-debug.log
+------+---------------------+-------------+
| fastlane summary |
+------+---------------------+-------------+
| Step | Action | Time (in s) |
+------+---------------------+-------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 2 |
| 3 | add_git_credentials | 0 |
| 4 | modify_config_xml | 0 |
| 💥 | build_pro_app | 17 |
+------+---------------------+-------------+
[20:45:42]: fastlane finished with errors
/usr/local/bin/fastlane: [!] Exit status of command 'npm run build' was 126 instead of 0.
(FastlaneCore::Interface::FastlaneShellError)
> aardraapp@0.0.1 build /builds/aardrasystems/app
> ng build
sh: 1: ng: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! aardraapp@0.0.1 build: `ng build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the aardraapp@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-24T20_45_42_679Z-debug.log
Running after script...
$ run "clean-up"
ERROR: Job failed: command terminated with exit code 1

如果您在 Windows 中执行了该项目,则可能是生成的文件的权限错误。为什么 AppFlow 使用 Unix OS for Android。

您必须通过 GIT 授予它权限:

https://ionic.zendesk.com/hc/en-us/articles/360000160067-Adding-execute-permissions-using-git

最新更新