Tag: firefox addon

jpm-mobile与ReferenceError失败:cmd未定义

这里是显示的堆栈跟踪: $ /tmp/node_modules/jpm-mobile/bin/jpm-mobile init /tmp/node_modules/jpm-mobile/bin/jpm-mobile:50 if (cmd.isEmptyCommand(program)) { ^ ReferenceError: cmd is not defined at Object.<anonymous> (/tmp/node_modules/jpm-mobile/bin/jpm-mobile:50:5) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:902:3 npm list显示安装了jpm-mobile。

将node.jsembedded到Firefox扩展中并在浏览器中运行服务器

我试图弄清楚如何在Firefox扩展中embeddednode.js,这样,只要用户启用了扩展,我就可以从浏览器中运行持久服务器进程(特别是PeerServer )。 我唯一能够在网上find的是这个指南 …但是我一直没有能够使这些指令的工作,并需要find一些更多的资源。 1)除了上面链接到的有关在Firefox扩展中embeddednode.js的文章外,是否还有其他任何资源? 任何代码示例? 2)是否有某些原因,在Firefox扩展中运行永久服务器进程(如PeerServer)是不可能的? 扩展名是否有某些限制会妨碍我做到这一点?