在npm之后安装osmesa-webgl我得到了这个错误。在安装过程中,一切似乎都很好(编译和创建库等等)。在此错误之后,一切都被删除,因此我无法分析文件。这是来自控制台的堆栈。
In file included from /root/.node-gyp/0.12.7/src/node.h:61:0,
from ../src/common.h:11,
from ../src/webgl.h:11,
from ../src/bindings.cc:9:
/root/.node-gyp/0.12.7/deps/v8/include/v8.h:2012:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
static Local<Integer> New(Isolate* isolate, int32_t value);
^
/root/.node-gyp/0.12.7/deps/v8/include/v8.h:2012:25: note: candidate expects 2 arguments, 1 provided
webgl.target.mk:90: recipe for target 'Release/obj.target/webgl
src/bindings.o' failed
make: *** [Release/obj.target/webgl/src/bindings.o] Error 1
make: Leaving directory '/var/www/trider/render/node_modules/osmesa-webgl/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/trider/render/node_modules/osmesa-webgl
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "osmesa-webgl"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
答案 0 :(得分:0)