【发布时间】:2016-07-30 10:22:55
【问题描述】:
-尝试在 Windows 上将一个简单的流星项目(我正在尝试制作音板)部署到我的 android 设备时出现此错误。
-声音适用于浏览器构建
-在应用实际播放声音之前我没有收到此错误消息
-我尝试过流星重置并删除android平台并再次添加它
-我尝试使用meteor add手动添加cordova插件,但我不确定我的语法是否正确,甚至不知道git上的正确插件(我一直在尝试添加这个:@ 987654321@)
这是完整的错误读数:
C:\Users\redacted\Documents\aaaaAppDev\Meteor\soundboardtest>meteor run android-device
[[[[[ C:\Users\redacted\Documents\aaaaAppDev\Meteor\soundboardtest ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Errors executing Cordova commands:
While adding plugin com.rjfun.cordova.plugin.lowlatencyaudio@1.0.0 to Cordova project:
Cordova error: Failed to fetch plugin com.rjfun.cordova.plugin.lowlatencyaudio@1.0.0 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.rjfun.cordova.plugin.lowlatencyaudio
(If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration.
You can try running again with the --verbose option to help diagnose the issue.)
C:\Users\redacted\AppData\Local\.meteor\packages\meteor-tool\1.3.0_3\mt-os.windows.x86_32\isopackets\cordova-support\npm\node_modules\meteor\promise\node_modules\meteor-promise\promise_server.js:116
throw error;
^
ExitWithCode:1
【问题讨论】:
-
你能显示你用来添加包的代码吗?您是否特别需要 1.0.0 可能值得尝试使用版本 @3.0.7,因为这是模块上的当前版本
-
你的意思是当我使用命令“meteor add cordova:com.rjfun.cordova.plugin.lowlatencyaudio@3.0.7”时? (在您对 1.0.0 发表评论之前,我尝试这样做,因为当我在谷歌上搜索该插件时,它说版本号是 1.0)。我刚刚用 3.0.7 尝试了同样的事情并得到了同样的错误。编辑:我应该提到它在我手动尝试之前尝试自动添加它。它默认为 1.4.0