尝试将流星应用程序作为移动应用程序运行。所以我找到了流星科尔多瓦。我已经从xcode创建了phonegap应用程序。在终端中,我进入主项目,而不是www (不确定这是否正确),然后我运行
cordova plugin add https://github.com/raix/Meteor-cordova.git但是得到了这个错误
/usr/local/lib/node_modules/cordova/node_modules/plugman/src/util/plugins.js:28
tmp_dir = path.join(os.tmpdir(), 'plugman-tmp');
^
TypeError: Object #<Object> has no method 'tmpdir'
at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/util/plugins.js:28:28)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/plugman/src/fetch.js:3:15)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)发布于 2014-01-16 16:03:25
当你使用phonegap创建应用程序时,你应该使用phonegap安装插件,而不是cordova:
phonegap local plugin add https://github.com/raix/Meteor-cordova.githttps://stackoverflow.com/questions/21155981
复制相似问题