【发布时间】:2014-04-17 06:46:57
【问题描述】:
我的 Node.Js 应用程序依赖于 bcrypt。它在我的本地服务器上运行良好,但是当我将 repository 关闭到 WebFaction 服务器时,bcrypt 似乎不想在那里安装(或编译?)。
我都试过了 npm 安装
(它在 packages.json 依赖项中列出)以及
npm install bcrypt
但这些都不起作用,我收到以下错误:
make: Entering directory
`/home/noduslabs/webapps/infranodus/infranodus/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
../src/bcrypt_node.cc: In function ‘v8::Handle<v8::Value><unnamed>::GenerateSalt(const
v8::Arguments&)’:
../src/bcrypt_node.cc:257: error: invalid conversion from ‘void (*)(uv_work_t*)’ to ‘void
(*)(uv_work_t*, int)’
[...]
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
make: Leaving directory
`/home/noduslabs/webapps/infranodus/infranodus/node_modules/bcrypt/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
我还尝试在运行的服务器上安装新版本的 node-gyp npm -g install node-gyp
但是没有用。
支持没有响应。
我请求你的帮助。
谢谢!
【问题讨论】:
-
检查你的 node.js 和 npm 版本。如果它是旧的,请更新。
标签: node.js bcrypt webfaction node-gyp