ios - 无法使用 Azure DevOps 构建使用 Cordova/Ionic 构建的 iOS 应用程序

标签 ios cordova azure-devops ionic4 visual-studio-cordova

尝试在 Azure DevOps 上使用 Ionic/Cordova 构建 iOS 应用

收到此错误:

Using cordova-fetch for cordova-ios@^5.0.0 
Failed to fetch platform cordova-ios@^5.0.0 
Probably this is either a connection problem, or platform spec is incorrect. 
Check your connection and platform name/version/URL. 
Error: Cannot find module 'UNMET/package.json' from '/Users/vsts/agent/2.148.2/work/1/s' 
[ERROR] An error occurred while running subprocess cordova.

我正在使用以下步骤进行简单设置:

  • 代理:托管 macOS
  • npm 安装
  • Ionic 命令 [ionic 版本:4.12.0; Cordova 版本:默认]
  • 发布构建工件

Snapshot from Azure DevOps

最佳答案

我们遇到了同样的问题,解决方案是确保满足所有 NPM 依赖项。

检查 npm install 步骤的日志,看看是否存在任何未满足的依赖项,并在 package.json 文件中添加/更新缺少的依赖项。

关于ios - 无法使用 Azure DevOps 构建使用 Cordova/Ionic 构建的 iOS 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55444789/

相关文章:

android - 如何将 google play 和 testflight 中的 beta 用户转移到生产应用程序

ios - 重新链接保管箱帐户的问题

Cordova 自定义插件结构没有回调?

ios - 尝试设置 selectedImage 时 UITabBarItem 没有可见界面

ios - Swift 中的 MapBox - 允许标记的注释具有链接到 View 的按钮

iOS - 归档期间出错,注意到 UAPushLocalization.bundle/en.lproj/Localizable.strings

cordova - 使用 Phonegap 的 Firebase 离线存储

c# - 为什么我的repositoryPath 在 Azure DevOps/TFS 中被忽略?

Azure DevOps 主体未显示在 Key Vault 中

azure-devops - DevOps 发布错误 : EPERM operation not permitted