centos 7 : npm install memwatch-next 出错
发布于 6 年前 作者 unreal0 4521 次浏览 来自 问答

nvm node -v : 10.0.0 [root@VM_0_13_centos ParseServer]# npm install memwatch-next

bcrypt@1.0.3 install /root/ParseServer/node_modules/bcrypt node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v1.0.3/bcrypt_lib-v1.0.3-node-v64-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for bcrypt@1.0.3 and node@10.0.0 (node-v64 ABI) (falling back to source compile with node-gyp) gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR make: 进入目录“/root/ParseServer/node_modules/bcrypt/build” CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o In file included from …/node_modules/nan/nan.h:192:0, from …/src/bcrypt_node.cc:1: …/node_modules/nan/nan_maybe_43_inl.h: 在函数‘Nan::Maybe<bool> Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’中: …/node_modules/nan/nan_maybe_43_inl.h:112:15: 错误:‘class v8::Object’没有名为‘ForceSet’的成员 return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); ^ In file included from …/src/bcrypt_node.cc:1:0: …/node_modules/nan/nan.h: 在函数‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’中: …/node_modules/nan/nan.h:835:60: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:171):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ …/node_modules/nan/nan.h: 在函数‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’中: …/node_modules/nan/nan.h:850:62: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:164):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ …/node_modules/nan/nan.h: 在函数‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char, int, v8::Localv8::Value)’中: …/node_modules/nan/nan.h:865:62: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:157):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ …/node_modules/nan/nan.h: 在成员函数‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate, v8::Localv8::Object, int, v8::Localv8::Value) const’中: …/node_modules/nan/nan.h:1479:5: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:171):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] )); ^ make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] 错误 1 make: 离开目录“/root/ParseServer/node_modules/bcrypt/build” gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/root/.nvm/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12) gyp ERR! System Linux 3.10.0-514.26.2.el7.x86_64 gyp ERR! command “/root/.nvm/v10.0.0/bin/node” “/root/.nvm/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/root/ParseServer/node_modules/bcrypt/lib/binding/bcrypt_lib.node” “–module_name=bcrypt_lib” "–module_path=/root/ParseServer/node_modules/bcrypt/lib/binding" gyp ERR! cwd /root/ParseServer/node_modules/bcrypt gyp ERR! node -v v10.0.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute ‘/root/.nvm/v10.0.0/bin/node /root/.nvm/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/ParseServer/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/root/ParseServer/node_modules/bcrypt/lib/binding’ (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/root/ParseServer/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:947:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5) node-pre-gyp ERR! System Linux 3.10.0-514.26.2.el7.x86_64 node-pre-gyp ERR! command “/root/.nvm/v10.0.0/bin/node” “/root/ParseServer/node_modules/.bin/node-pre-gyp” “install” "–fallback-to-build" node-pre-gyp ERR! cwd /root/ParseServer/node_modules/bcrypt node-pre-gyp ERR! node -v v10.0.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.36 node-pre-gyp ERR! not ok Failed to execute ‘/root/.nvm/v10.0.0/bin/node /root/.nvm/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/root/ParseServer/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/root/ParseServer/node_modules/bcrypt/lib/binding’ (1)

memwatch-next@0.3.0 install /root/ParseServer/node_modules/memwatch-next node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR make: 进入目录“/root/ParseServer/node_modules/memwatch-next/build” CXX(target) Release/obj.target/memwatch/src/heapdiff.o In file included from …/…/nan/nan.h:190:0, from …/src/heapdiff.hh:11, from …/src/heapdiff.cc:12: …/…/nan/nan_maybe_43_inl.h: 在函数‘Nan::Maybe<bool> Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Value, v8::PropertyAttribute)’中: …/…/nan/nan_maybe_43_inl.h:112:15: 错误:‘class v8::Object’没有名为‘ForceSet’的成员 return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); ^ In file included from …/src/heapdiff.hh:11:0, from …/src/heapdiff.cc:12: …/…/nan/nan.h: 在函数‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’中: …/…/nan/nan.h:833:60: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:171):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ …/…/nan/nan.h: 在函数‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’中: …/…/nan/nan.h:848:62: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:164):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ …/…/nan/nan.h: 在函数‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char, int, v8::Localv8::Value)’中: …/…/nan/nan.h:863:62: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:157):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ …/…/nan/nan.h: 在成员函数‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate, v8::Localv8::Object, int, v8::Localv8::Value) const’中: …/…/nan/nan.h:1477:5: 警告:不建议使用‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value*)’(声明于 /root/.node-gyp/10.0.0/include/node/node.h:171):Use MakeCallback(…, async_context) [-Wdeprecated-declarations] )); ^ …/src/heapdiff.cc: 在函数‘std::string handleToStr(v8::Handlev8::Value&)’中: …/src/heapdiff.cc:95:45: 警告:不建议使用‘v8::String::Utf8Value::Utf8Value(v8::Localv8::Value)’(声明于 /root/.node-gyp/10.0.0/include/node/v8.h:2821):Use Isolate version [-Wdeprecated-declarations] String::Utf8Value utfString(str->ToString()); ^ make: *** [Release/obj.target/memwatch/src/heapdiff.o] 错误 1 make: 离开目录“/root/ParseServer/node_modules/memwatch-next/build” gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/root/.nvm/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12) gyp ERR! System Linux 3.10.0-514.26.2.el7.x86_64 gyp ERR! command “/root/.nvm/v10.0.0/bin/node” “/root/.nvm/v10.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” "rebuild" gyp ERR! cwd /root/ParseServer/node_modules/memwatch-next gyp ERR! node -v v10.0.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@1.0.3 (node_modules/bcrypt): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bcrypt@1.0.3 install: node-pre-gyp install --fallback-to-build npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! memwatch-next@0.3.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the memwatch-next@0.3.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-07-05T06_13_25_958Z-debug.log

1 回复

自我搞定:) [root@VM_0_13_centos ParseServer]# sudo ln -fs nodejs ~/.nvm/v10.0.0/bin/node [root@VM_0_13_centos ParseServer]# sudo npm install -g node-gyp

回到顶部