Tag: bcrypt

meteor运行服务器获取错误:“找不到绑定文件。 bcrypt ”

问题 我尝试在Docker镜像中运行Meteor服务器应用程序。 运行主文件启动服务器会导致错误,请参阅下面的详细信息: Could not locate the bindings file. (我的系统:Macbook Pro,OSX 10.11.4) 题 有没有人有一个想法如何解决这个错误? 不成功的尝试来解决问题 按照这里所build议的运行npm rebuild不起作用 Nick Bull的build议:运行npm install –unsafe-perm node-gyp npm install –unsafe-perm libxmljs和npm install –unsafe-perm libxmljs不起作用。 两者都在/home/build/bundle/programs/server的docker容器中执行。 (由于–unsafe-perm root权限, 需要使用–unsafe-perm标志) 细节 Dockerfile (灵感来自meteorhacks / meteord ) FROM debian:wheezy ENV sourcedir /home/source ENV builddir /home/build RUN mkdir ${sourcedir} && mkdir ${builddir} RUN apt-get […]

bcrypt无法在docker中安装

为什么我无法在Docker(Dockerfile)中安装bcrypt? 我附上dockerfile和我得到的生成错误 是否涉及到一些版本问题? 错误 make: Entering directory '/usr/local/lib/node_modules/bcrypt/build' make: *** No rule to make target '../.node-gyp/6.10.2/include/node/common.gypi', needed by 'Makefile'. Stop. make: Leaving directory '/usr/local/lib/node_modules/bcrypt/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit […]