流星:错误:模块没有自行注册

时间:2016-10-13 14:43:47

标签: javascript node.js meteor

我正在尝试从源代码部署Wekan trello克隆,但我很难过。我只需运行meteor -p 80即可运行源代码,但我想正确部署它,因此我(成功地)将源代码构建到一个包中。然后我尝试使用node main.js运行它,但是失败并出现以下错误。

我按照this SO answer运行npm rebuild的建议,我还尝试了rm -r node_modules和另一个npm install,然后再次运行node main.js,但它又一次以下面的错误。

有人知道我还能尝试解决这个问题吗?

$ node main.js
{ Error: Cannot find module '../build/Release/bson'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb/node_modules/bson/ext/index.js:15:10)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at Module.Mp.load (/root/bundle/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
    at tryModuleLoad (module.js:446:12) code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
/root/bundle/programs/server/node_modules/fibers/future.js:280
                        throw(ex);
                        ^

Error: Module did not self-register.
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at Module.Mp.load (/root/bundle/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at bindings (/root/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/root/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at Module.Mp.load (/root/bundle/programs/server/npm/node_modules/meteor/babel-compiler/node_modules/reify/node/runtime.js:16:23)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

0 个答案:

没有答案