gpt4 book ai didi

linux - Meteor 部署问题 : module did not self-register

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:46:18 25 4
gpt4 key购买 nike

我刚刚在 digitalocean 租了一个小型服务器,然后我按照这个教程安装了 meteor :
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-meteor-js-application-on-ubuntu-14-04-with-nginx

我明白我做了什么,一切都很顺利。然后当我第一次开始这个项目时,我遇到了 nodejs 版本问题所以我将它更新为 4 ....然后我遇到了光纤问题,所以我重新安装了它,现在我得到了这个:

Upstart 日志:

/home/[user]/bundle/programs/server/node_modules/fibers/future.js:267 throw(ex); ^ Error: Module did not self-register. at Error (native) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at bindings (/home/[user]/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:76:44) at Object. (/home/[user]/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt/node_modules/bcrypt/bcrypt.js:3:35) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32)

首先,我尝试降级到 nodejs 0.12,因为这是我在开发中使用的。我还尝试删除 node_module 文件夹和 npm 重新安装/重建所有内容。我只是尝试重新安装 bcrypt

我卡住了,我不确定实际问题是什么。

我该怎么办?

react

最佳答案

我找到了很多解决问题的方法,它完全解决了我的错误:

cd /home/$YOUR_APP/bundle/programs/server/
npm install
npm rebuild
cd npm/node_modules/meteor/npm-bcrypt
npm install bcrypt

指定架构也有帮助:

meteor build . --architecture os.linux.x86_64

在这里你可以阅读它:Solution to Meteor deploy conflict with bcrypt

关于linux - Meteor 部署问题 : module did not self-register,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36786637/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com