Firefox Addon error: Module `http` is not found
Firefox Addon error: Module `http` is not found
我正在编写一个 Firefox 插件并尝试使用依赖于 http 包的 DBPedia Spotlight 包。
当我放线的时候
var http = require('http');
或
var mlspotlight = require('dbpedia-spotlight');
在 index.js 文件的顶部,我收到错误:
Module `http` is not found at resource://gre/modules/commonjs/http.js
我尝试使用
安装http包
npm install http --save
核心节点模块在 Addon SDK 中不可用。
有关此问题的更多信息:
我正在编写一个 Firefox 插件并尝试使用依赖于 http 包的 DBPedia Spotlight 包。
当我放线的时候
var http = require('http');
或
var mlspotlight = require('dbpedia-spotlight');
在 index.js 文件的顶部,我收到错误:
Module `http` is not found at resource://gre/modules/commonjs/http.js
我尝试使用
安装http包npm install http --save
核心节点模块在 Addon SDK 中不可用。
有关此问题的更多信息: