我试图在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
发布于 2020-04-26 02:06:00
如果您在Windows中执行该项目,则可能是生成的文件存在权限错误。为什么AppFlow在安卓上使用Unix操作系统?
你必须通过GIT给它权限:
https://ionic.zendesk.com/hc/en-us/articles/360000160067-Adding-execute-permissions-using-git
https://stackoverflow.com/questions/55838691
复制相似问题