OGeek|极客世界-中国程序员成长平台

标题: ios - Cordova 运行 ios : undefined is not a function [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 17:51
标题: ios - Cordova 运行 ios : undefined is not a function

我有一个 cordova 项目并尝试运行我执行的 iOS:

cordova platform add ios
cordova build ios
cordova run ios

前 2 个命令一切正常,但最后一个命令出现错误: enter image description here

我正在使用 OS X El Capitan: enter image description here

有什么想法吗?



Best Answer-推荐答案


您的 Cordova 安装似乎已损坏。请重新安装最新版本的 NPM 并使用 sudo npm install -g cordova 再次安装cordova。

关于ios - Cordova 运行 ios : undefined is not a function,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40091945/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4