markmon icon indicating copy to clipboard operation
markmon copied to clipboard

install problem on mac 10.12.3

Open chipbrock opened this issue 7 years ago • 2 comments

hi I'm up against an issue with npm install. Any ideas?

thanks:

MacBook-Pro-2:~ chipbrock$ sudo npm install -g markmon /usr/local/bin/markmon -> /usr/local/lib/node_modules/markmon/bin/markmon

[email protected] install /usr/local/lib/node_modules/markmon/node_modules/fsevents node-gyp rebuild

CXX(target) Release/obj.target/fse/fsevents.o In file included from ../fsevents.cc:6: ../../nan/nan.h:339:13: error: no member named 'New' in 'v8::String' return _NAN_ERROR(v8::Exception::Error, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                 ~~~~~~~~~~~~^

../../nan/nan.h:343:5: error: no member named 'ThrowException' in namespace 'v8' _NAN_THROW_ERROR(v8::Exception::Error, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR' v8::ThrowException(_NAN_ERROR(fun, errmsg));
~~~~^ ../../nan/nan.h:343:5: error: no member named 'New' in 'v8::String' _NAN_THROW_ERROR(v8::Exception::Error, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR' v8::ThrowException(_NAN_ERROR(fun, errmsg));
^~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                 ~~~~~~~~~~~~^

../../nan/nan.h:348:9: error: no type named 'ThrowException' in namespace 'v8' v8::ThrowException(error); ~~~~^ ../../nan/nan.h:355:65: error: no member named 'New' in 'v8::String' v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg)); ~~~~~~~~~~~~^ ../../nan/nan.h:356:50: error: expected '(' for function-style cast or type construction v8::Localv8::Object obj = err.Asv8::Object(); ~~~~~~~~~~^ ../../nan/nan.h:356:52: error: expected expression v8::Localv8::Object obj = err.Asv8::Object(); ^ ../../nan/nan.h:357:65: error: too few arguments to function call, expected 2, have 1 obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber)); ~~~~~~~~~~~~~~ ^ /Users/chipbrock/.node-gyp/7.10.0/include/node/v8.h:2770:3: note: 'New' declared here static Local<Integer> New(Isolate* isolate, int32_t value); ^ In file included from ../fsevents.cc:6: ../../nan/nan.h:357:26: error: no member named 'New' in 'v8::String' obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber)); ~~~~~~~~~~~~^ ../../nan/nan.h:369:12: error: no member named 'New' in 'v8::String' return _NAN_ERROR(v8::Exception::TypeError, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                 ~~~~~~~~~~~~^

../../nan/nan.h:373:5: error: no member named 'ThrowException' in namespace 'v8' _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR' v8::ThrowException(_NAN_ERROR(fun, errmsg));
~~~~^ ../../nan/nan.h:373:5: error: no member named 'New' in 'v8::String' _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR' v8::ThrowException(_NAN_ERROR(fun, errmsg));
^~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                 ~~~~~~~~~~~~^

../../nan/nan.h:377:12: error: no member named 'New' in 'v8::String' return _NAN_ERROR(v8::Exception::RangeError, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                 ~~~~~~~~~~~~^

../../nan/nan.h:381:5: error: no member named 'ThrowException' in namespace 'v8' _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR' v8::ThrowException(_NAN_ERROR(fun, errmsg));
~~~~^ ../../nan/nan.h:381:5: error: no member named 'New' in 'v8::String' _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR' v8::ThrowException(_NAN_ERROR(fun, errmsg));
^~~~~~~~~~~~~~~~~~~~~~~ ../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                 ~~~~~~~~~~~~^

../../nan/nan.h:406:13: error: no member named 'smalloc' in namespace 'node' , node::smalloc::FreeCallback callback ~~~~~~^ ../../nan/nan.h:141:71: note: expanded from macro 'NAN_INLINE'

define NAN_INLINE(declarator) inline attribute((always_inline)) declarator

                                                                  ^~~~~~~~~~

../../nan/nan.h:416:12: error: no matching function for call to 'New' return node::Buffer::New(data, size); ^~~~~~~~~~~~~~~~~ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'char ' to 'v8::Isolate ' for 1st argument NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, size_t length); ^ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:34:40: note: candidate function not viable: no known conversion from 'char ' to 'v8::Isolate ' for 1st argument NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:46:40: note: candidate function not viable: requires 3 arguments, but 2 were provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:39:40: note: candidate function not viable: requires 5 arguments, but 2 were provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ In file included from ../fsevents.cc:6: ../../nan/nan.h:420:12: error: no matching function for call to 'New' return node::Buffer::New(size); ^~~~~~~~~~~~~~~~~ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:31:40: note: candidate function not viable: requires 2 arguments, but 1 was provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length); ^ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:34:40: note: candidate function not viable: requires at least 2 arguments, but 1 was provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, ^ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:46:40: note: candidate function not viable: requires 3 arguments, but 1 was provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, ^ /Users/chipbrock/.node-gyp/7.10.0/include/node/node_buffer.h:39:40: note: candidate function not viable: requires 5 arguments, but 1 was provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, ^ In file included from ../fsevents.cc:6: ../../nan/nan.h:427:26: error: no member named 'Use' in namespace 'node::Buffer' return node::Buffer::Use(data, size); ~~~~~~~~~~~~~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [Release/obj.target/fse/fsevents.o] Error 1 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/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:194:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Darwin 16.4.0 gyp ERR! command "/usr/local/Cellar/node/7.10.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/markmon/node_modules/fsevents gyp ERR! node -v v7.10.0 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok /usr/local/lib └── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/markmon/node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

chipbrock avatar May 21 '17 18:05 chipbrock

npm install -g npm@latest-2 and then npm install -g markmon works.

formath avatar Jul 01 '17 09:07 formath

I am able to use the software despite the installation errors.

Ringelnatz avatar Oct 17 '17 16:10 Ringelnatz