Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys ! I'd installed Yeoman and generator-meanjs on Linux Mint then I had to install node modules in my mean app folder but when I wrote
Code:
npm install
I had an error
Code:
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8-debug.h:209:39: note: declared here
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:43:69: error: no matching function for call to ‘v8::Debug::GetDebugContext()’
v8::Context::Scope context_scope(v8::Debug::GetDebugContext());
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8-debug.h:209:39: note: candidate: static v8::Local<v8::Context> v8::Debug::GetDebugContext(v8::Isolate*)
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
/home/karyan/.node-gyp/9.0.0/include/node/v8-debug.h:209:39: note: candidate expects 1 argument, 0 provided
static Local<Context> GetDebugContext(Isolate* isolate));
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc: In static member function ‘static v8::Handle<v8::Object> nodex::Debug::createExceptionDetails(v8::Handle<v8::Message>)’:
../src/debug.cc:76:101: warning: ‘v8::Local<v8::Array> v8::StackTrace::AsArray()’ is deprecated: Use native API instead [-Wdeprecated-declarations]
exceptionDetails->Set(NanNew<v8::String>("stackTrace"), message->GetStackTrace()->AsArray());
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8.h:1646:56: note: declared here
V8_DEPRECATED("Use native API instead", Local<Array> AsArray());
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc: In static member function ‘static void nodex::Debug::EvaluateWithExceptionDetails(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/debug.cc:93:22: warning: ‘v8::TryCatch::TryCatch()’ is deprecated: Use isolate version [-Wdeprecated-declarations]
v8::TryCatch tryCatch;
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8.h:8343:40: note: declared here
V8_DEPRECATED("Use isolate version", TryCatch());
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc: In static member function ‘static void nodex::Debug::SetNonEnumProperty(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/debug.cc:119:56: error: no matching function for call to ‘v8::Object::ForceSet(v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’
object->ForceSet(args[1], args[2], v8::DontEnum);
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8.h:3115:29: note: candidate: v8::Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
/home/karyan/.node-gyp/9.0.0/include/node/v8.h:3115:29: note: no known conversion for argument 3 from ‘v8::PropertyAttribute’ to ‘v8::Local<v8::Value>’
Maybe<bool> ForceSet(Local<Context> context, Local<Value> key,
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc: In static member function ‘static void nodex::Debug::InternalConstructorName(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/debug.cc:194:23: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
result_type = "";
^
../src/debug.cc:201:26: warning: ‘v8::TryCatch::TryCatch()’ is deprecated: Use isolate version [-Wdeprecated-declarations]
v8::TryCatch tryCatch;
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8.h:8343:40: note: declared here
V8_DEPRECATED("Use isolate version", TryCatch());
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc:202:94: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
v8::Local<v8::Value> constructor = object->GetRealNamedProperty(constructorSymbol);
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8.h:3401:30: note: declared here
Local<Value> GetRealNamedProperty(Local<String> key));
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
../src/debug.cc: In static member function ‘static void nodex::Debug::Eval(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/debug.cc:293:22: warning: ‘v8::TryCatch::TryCatch()’ is deprecated: Use isolate version [-Wdeprecated-declarations]
v8::TryCatch tryCatch;
^
In file included from /home/karyan/.node-gyp/9.0.0/include/node/v8.h:26:0,
from /home/karyan/.node-gyp/9.0.0/include/node/node.h:63,
from ../node_modules/nan/nan.h:24,
from ../src/debug.cc:2:
/home/karyan/.node-gyp/9.0.0/include/node/v8.h:8343:40: note: declared here
V8_DEPRECATED("Use isolate version", TryCatch());
^
/home/karyan/.node-gyp/9.0.0/include/node/v8config.h:318:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
debug.target.mk:95: recipe for target 'Release/obj.target/debug/src/debug.o' failed
make: *** [Release/obj.target/debug/src/debug.o] Error 1
make: Leaving directory '/home/karyan/test/mean/node_modules/v8-debug/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/karyan/test/mean/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:135:13)
gyp ERR! stack at ChildProcess.emit (events.js:224:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.8.0-53-generic
gyp ERR! command "/usr/local/bin/node" "/home/karyan/test/mean/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64/debug.node" "--module_name=debug" "--module_path=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64"
gyp ERR! cwd /home/karyan/test/mean/node_modules/v8-debug
gyp ERR! node -v v9.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 '/usr/local/bin/node /home/karyan/test/mean/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64/debug.node --module_name=debug --module_path=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/karyan/test/mean/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:135:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:224:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:943:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Linux 4.8.0-53-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/karyan/test/mean/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/karyan/test/mean/node_modules/v8-debug
node-pre-gyp ERR! node -v v9.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /home/karyan/test/mean/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64/debug.node --module_name=debug --module_path=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64' (1)
npm WARN mongodb-core@1.2.31 requires a peer of kerberos@~0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mongodb-core@1.2.24 requires a peer of kerberos@~0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/node-inspector/node_modules/bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/node-inspector/node_modules/utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@0.4.6 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! /home/karyan/.npm/_logs/2017-11-05T19_50_08_800Z-debug.log
Most of the error is 'In this opened by that, called by the other thing' stuff and there's nothing necessarily wrong with it. The interesting bit is
Code:
node-pre-gyp ERR! System Linux 4.8.0-53-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/karyan/test/mean/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/karyan/test/mean/node_modules/v8-debug
node-pre-gyp ERR! node -v v9.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /home/karyan/test/mean/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64/debug.node --module_name=debug --module_path=/home/karyan/test/mean/node_modules/v8-debug/build/debug/v0.4.6/node-v59-linux-x64' (1)
npm WARN mongodb-core@1.2.31 requires a peer of kerberos@~0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mongodb-core@1.2.24 requires a peer of kerberos@~0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/node-inspector/node_modules/bufferutil):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/node-inspector/node_modules/utf-8-validate):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! v8-debug@0.4.6 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug@0.4.6 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! /home/karyan/.npm/_logs/2017-11-05T19_50_08_800Z-debug.log
That seem like it tried to compile it, and the compile puked at many levels. You're missing a pile of dependencies but it went ahead and tried to build anyway.
Missing dependencies is kind of fatal; unsupported platform is really not good. I would hunt for a binary rpm suitedf to your install as the easiest way forward and find what the dependencies are.
EDIT: Oh, stick that log on pastebin and post the link.
Last edited by business_kid; 11-06-2017 at 08:30 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.