在Ubuntu上从源代码构建rethinkdb

时间:2015-07-23 17:09:18

标签: node.js npm rethinkdb

我正在尝试从源代码构建rethinkdb并点击此错误:

npm WARN engine amdefine@0.1.1: wanted: {"node":">=0.4.2"} (current: {"node":"0.13.0-pre","npm":"2.11.3"})
npm WARN engine mime-db@1.13.0: wanted: {"node":">= 0.6"} (current: {"node":"0.13.0-pre","npm":"2.11.3"})
npm http fetch 200 https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "--userconfig" "/home/myth/rethinkdb/mk/support/config/npm.conf" "--cache" "/home/myth/rethinkdb/external/npm_cache-2cOLXsUU" "--cache" "/home/myth/rethinkdb/external/admin-deps_2.0.3.fetch-2Suk269g/npm-cache" "install"
npm ERR! node v0.13.0-pre
npm ERR! npm  v2.11.3
npm ERR! code ENOTSUP

npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your version of node/npm: vinyl-fs@0.3.13
npm ERR! notsup Required: {"node":">= 0.10"}
npm ERR! notsup Actual:   {"npm":"2.11.3","node":"0.13.0-pre"}

npm ERR! Please include the following file with any support request:
npm ERR!     /home/myth/rethinkdb/external/admin-deps_2.0.3.fetch-bcJwskoE/npm-debug.log

Full error log: ./build/external/admin-deps_2.0.3_fetch.log
make[1]: *** [external/admin-deps_2.0.3] Error 1
make: *** [make] Error 2

似乎缺少适当版本的npm。我需要哪个版本? 我该如何诊断这个问题?

1 个答案:

答案 0 :(得分:0)

似乎问题不是RethinkDB,而是vinyl-fs(一个npm模块)似乎并不喜欢你使用{{1}节点版本的事实}。也许您可以尝试安装nvm并使用0.12来安装RethinKDB?