我已经通过npm安装了nodejs和模块bedbase。Sofabase也已安装,我可以通过浏览器访问后端。
在Windows上也可以使用相同的server.js文件。
我已经安装了python 2.7。我错过了什么吗?
我收到错误消息:
marcel@servermarcel:~/game$ nodejs server.js
/home/marcel/game/node_modules/couchbase/lib/binding.js:156
throw new Error('Failed to locate couchnode native binding' +
^
Error: Failed to locate couchnode native binding (maybe check builderror.log!)
at Object.<anonymous> (/home/marcel/game/node_modules/couchbase/lib/binding.js:156:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/marcel/game/node_modules/couchbase/lib/couchbase.js:3:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
Run Code Online (Sandbox Code Playgroud)
当我查看builderror.log时,我看到:
$all to 'node -e "require('nan')"' returned exit status 1.le trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack …Run Code Online (Sandbox Code Playgroud)