LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-05-2017, 02:11 PM   #1
karyan
LQ Newbie
 
Registered: Nov 2017
Posts: 1

Rep: Reputation: Disabled
Linux Mint: npm install error


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
 
Old 11-06-2017, 08:28 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,294

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Welcome to LQ.

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting error when installing npm ubuntu 16.04 aruneshdutta Linux - Newbie 3 08-18-2017 07:14 AM
npm install latest broke npm Panicked Linux - Software 2 06-14-2017 03:57 PM
LXer: Install npm on Ubuntu 16.04 LXer Syndicated Linux News 0 12-29-2016 09:00 AM
LXer: NPM creator starts a company to offer npm-related products and services LXer Syndicated Linux News 0 01-17-2014 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration