【问题标题】:Ionic Appflow build fails with "Permission denied"Ionic Appflow 构建失败并显示“权限被拒绝”
【发布时间】:2019-09-14 06:15:32
【问题描述】:

我正在尝试在 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

【问题讨论】:

  • 你用管理员权限试过了吗?
  • 您解决了appflow构建中的权限问题吗?我也有类似的问题...

标签: ionic-framework ionic4 ionic-appflow


【解决方案1】:

如果您在 Windows 中进行项目,则可能是生成文件的权限错误。为什么 AppFlow 使用适用于 Android 的 Unix 操作系统。

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

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

【讨论】:

    猜你喜欢
    • 2012-08-27
    • 2013-12-10
    • 2023-01-18
    • 1970-01-01
    • 2021-08-01
    • 1970-01-01
    • 2022-01-19
    • 2016-07-22
    • 2015-03-25
    相关资源
    最近更新 更多