Country API.js运行失败


#1

从github上下载最新的代码安装完成之后,portal可已访问,登录进去之后,无法创建新的App,通过查看日志,发现API.js运行失败。手动运行API.js,提示如下错误。请问该如何解决?谢谢!
错误提示如下:
Error: Could not locate the bindings file. Tried:
→ /usr/local/src/countly-server/node_modules/time/build/time.node
→ /usr/local/src/countly-server/node_modules/time/build/Debug/time.node
→ /usr/local/src/countly-server/node_modules/time/build/Release/time.node
→ /usr/local/src/countly-server/node_modules/time/out/Debug/time.node
→ /usr/local/src/countly-server/node_modules/time/Debug/time.node
→ /usr/local/src/countly-server/node_modules/time/out/Release/time.node
→ /usr/local/src/countly-server/node_modules/time/Release/time.node
→ /usr/local/src/countly-server/node_modules/time/build/default/time.node
→ /usr/local/src/countly-server/node_modules/time/compiled/6.9.5/linux/x64/time.node
at bindings (/usr/local/src/countly-server/node_modules/bindings/bindings.js:88:9)
at Object. (/usr/local/src/countly-server/node_modules/time/index.js:8:35)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/src/countly-server/api/utils/common.js:3:27)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)


#2

这个是 time这个 node l第三方ib在你本地环境没有编译成功。可以尝试一下 在countly 目录下执行 "npm rebuild" 命令 重新编译 node_modules里需要本地编译的第三方libs.


#3

build就失败


#5

这是因为你运行环境没有安装python, time这个第三方node lib编译是通过python脚本来执行的。