npm在Joyent的smartOS机器上安装mongoose

时间:2014-04-14 01:48:49

标签: node.js mongoose

我尝试在Joyent的SmartOS机器上安装mongoose并收到错误消息。我知道肯定有2个问题:kerberos和bson。我该怎么办。谢谢!

我发现了这篇文章:Installing Mongoose in NodeJS 0.10.8。它没有回答我的问题。

/home/node# node -v
v0.10.24
/home/node# mongo --version
MongoDB shell version: 2.4.6
/home/node# npm cache clean
/home/node# npm install mongoose
npm http GET https://registry.npmjs.org/mongoose
        (I assume every alright here)
npm http 200 https://registry.npmjs.org/kerberos/-/kerberos-0.0.3.tgz

> kerberos@0.0.3 install /home/node/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)


> bson@0.2.5 install /home/node/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

mongoose@3.8.8 node_modules/mongoose


/home/node# more node_modules/mongoose/node_modules/mongodb/node_modules/bson/builderror.log
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at F (/opt/local/lib/node_modules/npm/node_modules/which/whic
h.js:43:28)
gyp ERR! stack     at E (/opt/local/lib/node_modules/npm/node_modules/which/whic
h.js:46:29)
gyp ERR! stack     at /opt/local/lib/node_modules/npm/node_modules/which/which.j
s:57:16
gyp ERR! stack     at Object.oncomplete (fs.js:107:15)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/b
in/node-gyp.js" "rebuild"
gyp ERR! cwd /home/node/node_modules/mongoose/node_modules/mongodb/node_modules/
bson
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
/home/node#

1 个答案:

答案 0 :(得分:0)

我查看了Joyent的支持,他们的反应是内存不足可能会导致这些错误。