阅读:1458回复:5
命令行cfx run后,报错:I can't find the application binary in any of its default locations
初学请见谅。参考:https://developer.mozilla.org/zh-CN/docs/Mozilla/Add-ons/SDK/Tutorials/Getting_started
更改main.js后运行 cfx run 结果(红字): (D:\browser\Firefox-Plug\addon-sdk-1.17) D:\browser\Firefox-Plug\my-addon>cfx init * lib directory created * data directory created * test directory created * generated jID automatically: jid1-U5hdFQpbRKuPPw * package.json written * test/test-main.js written * lib/main.js written Your sample add-on is now ready. Do "cfx test" to test it and "cfx run" to try it. Have fun! (D:\browser\Firefox-Plug\addon-sdk-1.17) D:\browser\Firefox-Plug\my-addon>cfx run I can't find the application binary in any of its default locations on your system. Please specify one using the -b/--binary option. (D:\browser\Firefox-Plug\addon-sdk-1.17) D:\browser\Firefox-Plug\my-addon> 不懂为什么说没有找到程序?或者说如何更改? SDK安装应该没错吧,否则运行cfx init时就应该出错? 版本: Firefox Developer Edition 39.0.0.5587 64位 SDK-1.17 |
|
1楼#
发布于:2015-04-20 19:12
首先
cfx已经被抛弃了 https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/cfx 官方现在主推jpm 其次 cfx根本就没有检测firefox可执行文件路径的代码 一般还是手动指定-b参数或者设置local.json来使用 https://developer.mozilla.org/en-US/Add-ons/SDK/Tools/cfx#Using_Configurations 这点上,jpm勉强及格 |
|
|
2楼#
发布于:2015-04-20 16:20
|
|
|
3楼#
发布于:2015-04-20 15:55
pcxfirefox:已经说了很清楚了网上只是说输入 cfx run, |
|
4楼#
发布于:2015-04-20 15:52
pcxfirefox:已经说了很清楚了是在cfx run后面跟火狐的exe文件路径吗? |
|
5楼#
发布于:2015-04-20 15:44
已经说了很清楚了
Please specify one using the -b/--binary option |
|
|