当先锋百科网

首页 1 2 3 4 5 6 7

安装的时候遇到问题啦,能帮忙看看报错咋解决不

[root@localhost ~]# cnpm install -g log.io --user 'root'

Downloading log.io to /usr/local/lib/node_modules/log.io_tmp

Copying /usr/local/lib/node_modules/log.io_tmp/[email protected]@log.io to /usr/local/lib/node_modules/log.io

Installing log.io's dependencies to /usr/local/lib/node_modules/log.io/node_modules

[1/9] underscore@~1.4.3 installed at node_modules/[email protected]@underscore

[2/9] backbone@~0.9.10 installed at node_modules/[email protected]@backbone

[3/9] coffee-script@~1.4.0 installed at node_modules/[email protected]@coffee-script

[4/9] jquery-browserify@~1.8.1 installed at node_modules/[email protected]@jquery-browserify

[5/9] winston@~0.6.2 installed at node_modules/[email protected]@winston

[6/9] express@~3.0.1 installed at node_modules/[email protected]@express

[7/9] socket.io-client@~0.9.11 installed at node_modules/[email protected]@socket.io-client

[8/9] socket.io@~0.9.13 installed at node_modules/[email protected]@socket.io

[email protected] › contextify@~0.1.3 found binding.gyp file, auto run "node-gyp rebuild"

make: Entering directory /usr/local/lib/node_modules/log.io/node_modules/[email protected]@contextify/build'

CXX(target) Release/obj.target/contextify/src/contextify.o

../src/contextify.cc: In static member function ‘static v8::Local<:context> ContextWrap::createV8Context(v8::Local<:object>)’:

../src/contextify.cc:131:68: warning: ‘v8::Local<:object> v8::Function::NewInstance() const’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3851): Use maybe version [-Wdeprecated-declarations]

Local wrapper = Nan::New(constructor)->NewInstance();

^

../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’

otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,

^

../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<:string>, const Nan::PropertyCallbackInfo<:value>&)’:

../src/contextify.cc:182:80: warning: ‘v8::Local<:value> v8::Object::GetRealNamedProperty(v8::Local<:string>)’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3403): Use maybe version [-Wdeprecated-declarations]

Local rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);

^

../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<:string>, const Nan::PropertyCallbackInfo<:integer>&)’:

../src/contextify.cc:209:67: warning: ‘v8::Local<:value> v8::Object::GetRealNamedProperty(v8::Local<:string>)’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3403): Use maybe version [-Wdeprecated-declarations]

if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||

^

../src/contextify.cc:210:71: warning: ‘v8::Local<:value> v8::Object::GetRealNamedProperty(v8::Local<:string>)’ is deprecated (declared at /root/.node-gyp/8.11.2/include/node/v8.h:3403): Use maybe version [-Wdeprecated-declarations]

!Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {

^

make: *** [Release/obj.target/contextify/src/contextify.o] Error 1

make: Leaving directory/usr/local/lib/node_modules/log.io/node_modules/[email protected]@contextify/build'

gyp ERR! build error

gyp ERR! stack Error: make failed with exit code: 2

gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/cnpm/node_modules/node-gyp/lib/build.js:258:23)

gyp ERR! stack at emitTwo (events.js:126:13)

gyp ERR! stack at ChildProcess.emit (events.js:214:7)

gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

gyp ERR! System Linux 3.10.0-123.el7.x86_64

gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/cnpm/node_modules/npminstall/node-gyp-bin/node-gyp.js" "rebuild"

gyp ERR! cwd /usr/local/lib/node_modules/log.io/node_modules/[email protected]@contextify

gyp ERR! node -v v8.11.2

gyp ERR! node-gyp -v v3.6.2

gyp ERR! not ok

Install fail! Error: Run "sh -c node-gyp rebuild" error, exit code 1

Error: Run "sh -c node-gyp rebuild" error, exit code 1

at ChildProcess.proc.on.code (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:74:21)

at emitTwo (events.js:126:13)

at ChildProcess.emit (events.js:214:7)

at maybeClose (internal/child_process.js:925:16)

at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

npminstall version: 3.5.0

npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/root/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org -g log.io --user root