question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install codebox from latest version of npm (3.3.10-1)

See original GitHub issue
[kminehart@kevin-arch ~]$ sudo pacman -S nodejs npm
[sudo] password for kminehart: 
resolving dependencies...
looking for conflicting packages...

Packages (4) http-parser-2.6.0-1  libuv-1.7.5-1  nodejs-5.0.0-1  npm-3.3.10-1

Total Download Size:    5.10 MiB
Total Installed Size:  22.35 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages ...
 libuv-1.7.5-1-x86_64                                119.2 KiB   421K/s 00:00 [############################################] 100%
 http-parser-2.6.0-1-x86_64                           16.8 KiB   453K/s 00:00 [############################################] 100%
 nodejs-5.0.0-1-x86_64                                 3.1 MiB   332K/s 00:10 [############################################] 100%
 npm-3.3.10-1-any                                   1878.9 KiB   251K/s 00:07 [############################################] 100%
(4/4) checking keys in keyring                                                [############################################] 100%
(4/4) checking package integrity                                              [############################################] 100%
(4/4) loading package files                                                   [############################################] 100%
(4/4) checking for file conflicts                                             [############################################] 100%
(4/4) checking available disk space                                           [############################################] 100%
(1/4) installing libuv                                                        [############################################] 100%
(2/4) installing http-parser                                                  [############################################] 100%
(3/4) installing nodejs                                                       [############################################] 100%
Optional dependencies for nodejs
    npm: nodejs package manager [pending]
(4/4) installing npm                                                          [############################################] 100%
Optional dependencies for npm
    python2: for node-gyp [installed]
[kminehart@kevin-arch ~]$ sudo npm install -g codebox
npm WARN lifecycle safefs@3.1.3~preinstall: cannot run in wd %s %s (wd=%s) safefs@3.1.3 node ./cyclic.js /usr/lib/node_modules/.staging/safefs-a334aa8741308a705d5f31fd29e74fcb
npm WARN lifecycle typechecker@2.0.8~preinstall: cannot run in wd %s %s (wd=%s) typechecker@2.0.8 node ./cyclic.js /usr/lib/node_modules/.staging/typechecker-0dc4cdcf8c9a88c504312d4286ccdbb9
npm WARN lifecycle ambi@2.1.6~preinstall: cannot run in wd %s %s (wd=%s) ambi@2.1.6 node ./cyclic.js /usr/lib/node_modules/.staging/ambi-e67e8edb954c40a50e193638c99a444d
npm WARN lifecycle taskgroup@3.3.9~preinstall: cannot run in wd %s %s (wd=%s) taskgroup@3.3.9 node ./cyclic.js /usr/lib/node_modules/.staging/taskgroup-0f060a9ab90fa2d8166a4710e4b3c903
npm WARN lifecycle ambi@2.2.0~preinstall: cannot run in wd %s %s (wd=%s) ambi@2.2.0 node ./cyclic.js /usr/lib/node_modules/.staging/ambi-7107e6dd15f9b71e1ac5a5b52cbd6489
npm WARN lifecycle taskgroup@4.3.0~preinstall: cannot run in wd %s %s (wd=%s) taskgroup@4.3.0 node ./cyclic.js /usr/lib/node_modules/.staging/taskgroup-b33f8c76e7e762428c92ca6fcdfdaa6e
/usr/bin/codebox -> /usr/lib/node_modules/codebox/bin/codebox.js

> pty.js@0.2.5 install /usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.0.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp"
make: Entering directory '/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../../nan/nan_new.h:190:0,
                 from ../../nan/nan.h:74,
                 from ../src/unix/pty.cc:16:
../../nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::Signature>::return_t NanIntern::Factory<v8::Signature>::New(NanIntern::Factory<v8::Signature>::FTH, int, NanIntern::Factory<v8::Signature>::FTH*)’:
../../nan/nan_implementation_12_inl.h:181:76: error: no matching function for call to ‘v8::Signature::New(v8::Isolate*, NanIntern::Factory<v8::Signature>::FTH&, int&, NanIntern::Factory<v8::Signature>::FTH*&)’
   return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
                                                                            ^
In file included from /usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../../nan/nan.h:24,
                 from ../src/unix/pty.cc:16:
/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:4674:27: note: candidate: static v8::Local<v8::Signature> v8::Signature::New(v8::Isolate*, v8::Local<v8::FunctionTemplate>)
   static Local<Signature> New(
                           ^
/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:4674:27: note:   candidate expects 2 arguments, 4 provided
In file included from ../src/unix/pty.cc:16:0:
../../nan/nan.h: At global scope:
../../nan/nan.h:165:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                         ^
../../nan/nan.h:160:25: note: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                         ^
../../nan/nan.h:557:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^
../../nan/nan.h:557:35: error: expected ‘,’ or ‘...’ before ‘callback’
     , node::smalloc::FreeCallback callback
                                   ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:561:50: error: ‘callback’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                  ^
../../nan/nan.h:561:60: error: ‘hint’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                            ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../../nan/nan.h:568:67: error: no matching function for call to ‘New(v8::Isolate*, const char*&, uint32_t&)’
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
In file included from ../../nan/nan.h:25:0,
                 from ../src/unix/pty.cc:16:
/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note:   conversion of argument 3 would be ill-formed:
In file included from ../src/unix/pty.cc:16:0:
../../nan/nan.h:568:67: error: invalid conversion from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
In file included from ../../nan/nan.h:25:0,
                 from ../src/unix/pty.cc:16:
/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note:   conversion of argument 2 would be ill-formed:
In file included from ../src/unix/pty.cc:16:0:
../../nan/nan.h:568:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:572:29: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>’
     return node::Buffer::New(v8::Isolate::GetCurrent(), size);
                             ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:579:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
            ^
pty.target.mk:90: recipe for target 'Release/obj.target/pty/src/unix/pty.o' failed
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory '/usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.5-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/codebox/node_modules/gittle/node_modules/pty.js
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:pty.js@0.2.5 pty.js@0.2.5 install: `node-gyp rebuild`
npm WARN install:pty.js@0.2.5 Exit status 1

> pty.js@0.2.3 install /usr/lib/node_modules/codebox/node_modules/pty.js
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.0.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp"
make: Entering directory '/usr/lib/node_modules/codebox/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
../src/unix/pty.cc:65:15: error: ‘Arguments’ does not name a type
 PtyFork(const Arguments&);
               ^
../src/unix/pty.cc:68:15: error: ‘Arguments’ does not name a type
 PtyOpen(const Arguments&);
               ^
../src/unix/pty.cc:71:17: error: ‘Arguments’ does not name a type
 PtyResize(const Arguments&);
                 ^
../src/unix/pty.cc:74:18: error: ‘Arguments’ does not name a type
 PtyGetProc(const Arguments&);
                  ^
../src/unix/pty.cc:104:15: error: ‘Arguments’ does not name a type
 PtyFork(const Arguments& args) {
               ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyFork(const int&)’:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/unix/pty.cc:105:15: error: within this context
   HandleScope scope;
               ^
../src/unix/pty.cc:107:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
   if (args.Length() < 6
            ^
../src/unix/pty.cc:108:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[0]->IsString()
                 ^
../src/unix/pty.cc:109:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[1]->IsArray()
                 ^
../src/unix/pty.cc:110:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[2]->IsArray()
                 ^
../src/unix/pty.cc:111:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[3]->IsString()
                 ^
../src/unix/pty.cc:112:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[4]->IsNumber()
                 ^
../src/unix/pty.cc:113:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[5]->IsNumber()
                 ^
../src/unix/pty.cc:114:16: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
       || (args.Length() >= 8 && !args[6]->IsNumber())
                ^
../src/unix/pty.cc:114:40: error: invalid types ‘const int[int]’ for array subscript
       || (args.Length() >= 8 && !args[6]->IsNumber())
                                        ^
../src/unix/pty.cc:115:16: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
       || (args.Length() >= 8 && !args[7]->IsNumber())) {
                ^
../src/unix/pty.cc:115:40: error: invalid types ‘const int[int]’ for array subscript
       || (args.Length() >= 8 && !args[7]->IsNumber())) {
                                        ^
../src/unix/pty.cc:117:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("Usage: pty.fork(file, args, env, cwd, cols, rows[, uid, gid])")));
       ^
../src/unix/pty.cc:117:84: error: ‘ThrowException’ was not declared in this scope
       String::New("Usage: pty.fork(file, args, env, cwd, cols, rows[, uid, gid])")));
                                                                                    ^
../src/unix/pty.cc:123:32: error: invalid types ‘const int[int]’ for array subscript
   String::Utf8Value file(args[0]->ToString());
                                ^
../src/unix/pty.cc:127:49: error: invalid types ‘const int[int]’ for array subscript
   Local<Array> argv_ = Local<Array>::Cast(args[1]);
                                                 ^
../src/unix/pty.cc:134:52: error: no matching function for call to ‘v8::Integer::New(int&)’
     String::Utf8Value arg(argv_->Get(Integer::New(i))->ToString());
                                                    ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2496:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2496:25: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:140:48: error: invalid types ‘const int[int]’ for array subscript
   Local<Array> env_ = Local<Array>::Cast(args[2]);
                                                ^
../src/unix/pty.cc:145:52: error: no matching function for call to ‘v8::Integer::New(int&)’
     String::Utf8Value pair(env_->Get(Integer::New(i))->ToString());
                                                    ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2496:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2496:25: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:150:32: error: invalid types ‘const int[int]’ for array subscript
   String::Utf8Value cwd_(args[3]->ToString());
                                ^
../src/unix/pty.cc:155:23: error: invalid types ‘const int[int]’ for array subscript
   winp.ws_col = args[4]->IntegerValue();
                       ^
../src/unix/pty.cc:156:23: error: invalid types ‘const int[int]’ for array subscript
   winp.ws_row = args[5]->IntegerValue();
                       ^
../src/unix/pty.cc:163:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
   if (args.Length() >= 8) {
            ^
../src/unix/pty.cc:164:17: error: invalid types ‘const int[int]’ for array subscript
     uid = args[6]->IntegerValue();
                 ^
../src/unix/pty.cc:165:17: error: invalid types ‘const int[int]’ for array subscript
     gid = args[7]->IntegerValue();
                 ^
../src/unix/pty.cc:184:9: error: ‘New’ is not a member of ‘v8::String’
         String::New("forkpty(3) failed.")));
         ^
../src/unix/pty.cc:184:43: error: ‘ThrowException’ was not declared in this scope
         String::New("forkpty(3) failed.")));
                                           ^
../src/unix/pty.cc:206:11: error: ‘New’ is not a member of ‘v8::String’
           String::New("Could not set master fd to nonblocking.")));
           ^
../src/unix/pty.cc:209:39: error: no matching function for call to ‘v8::Object::New()’
       Local<Object> obj = Object::New();
                                       ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2930:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2930:24: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:210:16: error: ‘New’ is not a member of ‘v8::String’
       obj->Set(String::New("fd"), Number::New(master));
                ^
../src/unix/pty.cc:210:53: error: no matching function for call to ‘v8::Number::New(int&)’
       obj->Set(String::New("fd"), Number::New(master));
                                                     ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:211:16: error: ‘New’ is not a member of ‘v8::String’
       obj->Set(String::New("pid"), Number::New(pid));
                ^
../src/unix/pty.cc:211:51: error: no matching function for call to ‘v8::Number::New(pid_t&)’
       obj->Set(String::New("pid"), Number::New(pid));
                                                   ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:212:16: error: ‘New’ is not a member of ‘v8::String’
       obj->Set(String::New("pty"), String::New(name));
                ^
../src/unix/pty.cc:212:36: error: ‘New’ is not a member of ‘v8::String’
       obj->Set(String::New("pty"), String::New(name));
                                    ^
../src/unix/pty.cc:214:20: error: ‘class v8::HandleScope’ has no member named ‘Close’
       return scope.Close(obj);
                    ^
../src/unix/pty.cc:217:20: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return Undefined();
                    ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:226:15: error: ‘Arguments’ does not name a type
 PtyOpen(const Arguments& args) {
               ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyOpen(const int&)’:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/unix/pty.cc:227:15: error: within this context
   HandleScope scope;
               ^
../src/unix/pty.cc:229:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
   if (args.Length() != 2
            ^
../src/unix/pty.cc:230:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[0]->IsNumber()
                 ^
../src/unix/pty.cc:231:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[1]->IsNumber()) {
                 ^
../src/unix/pty.cc:233:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("Usage: pty.open(cols, rows)")));
       ^
../src/unix/pty.cc:233:50: error: ‘ThrowException’ was not declared in this scope
       String::New("Usage: pty.open(cols, rows)")));
                                                  ^
../src/unix/pty.cc:238:23: error: invalid types ‘const int[int]’ for array subscript
   winp.ws_col = args[0]->IntegerValue();
                       ^
../src/unix/pty.cc:239:23: error: invalid types ‘const int[int]’ for array subscript
   winp.ws_row = args[1]->IntegerValue();
                       ^
../src/unix/pty.cc:250:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("openpty(3) failed.")));
       ^
../src/unix/pty.cc:250:41: error: ‘ThrowException’ was not declared in this scope
       String::New("openpty(3) failed.")));
                                         ^
../src/unix/pty.cc:255:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("Could not set master fd to nonblocking.")));
       ^
../src/unix/pty.cc:255:62: error: ‘ThrowException’ was not declared in this scope
       String::New("Could not set master fd to nonblocking.")));
                                                              ^
../src/unix/pty.cc:260:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("Could not set slave fd to nonblocking.")));
       ^
../src/unix/pty.cc:260:61: error: ‘ThrowException’ was not declared in this scope
       String::New("Could not set slave fd to nonblocking.")));
                                                             ^
../src/unix/pty.cc:263:35: error: no matching function for call to ‘v8::Object::New()’
   Local<Object> obj = Object::New();
                                   ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2930:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2930:24: note:   candidate expects 1 argument, 0 provided
../src/unix/pty.cc:264:12: error: ‘New’ is not a member of ‘v8::String’
   obj->Set(String::New("master"), Number::New(master));
            ^
../src/unix/pty.cc:264:53: error: no matching function for call to ‘v8::Number::New(int&)’
   obj->Set(String::New("master"), Number::New(master));
                                                     ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:265:12: error: ‘New’ is not a member of ‘v8::String’
   obj->Set(String::New("slave"), Number::New(slave));
            ^
../src/unix/pty.cc:265:51: error: no matching function for call to ‘v8::Number::New(int&)’
   obj->Set(String::New("slave"), Number::New(slave));
                                                   ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note: candidate: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double)
   static Local<Number> New(Isolate* isolate, double value);
                        ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:2483:24: note:   candidate expects 2 arguments, 1 provided
../src/unix/pty.cc:266:12: error: ‘New’ is not a member of ‘v8::String’
   obj->Set(String::New("pty"), String::New(name));
            ^
../src/unix/pty.cc:266:32: error: ‘New’ is not a member of ‘v8::String’
   obj->Set(String::New("pty"), String::New(name));
                                ^
../src/unix/pty.cc:268:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(obj);
                ^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:277:17: error: ‘Arguments’ does not name a type
 PtyResize(const Arguments& args) {
                 ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyResize(const int&)’:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/unix/pty.cc:278:15: error: within this context
   HandleScope scope;
               ^
../src/unix/pty.cc:280:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
   if (args.Length() != 3
            ^
../src/unix/pty.cc:281:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[0]->IsNumber()
                 ^
../src/unix/pty.cc:282:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[1]->IsNumber()
                 ^
../src/unix/pty.cc:283:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[2]->IsNumber()) {
                 ^
../src/unix/pty.cc:285:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("Usage: pty.resize(fd, cols, rows)")));
       ^
../src/unix/pty.cc:285:56: error: ‘ThrowException’ was not declared in this scope
       String::New("Usage: pty.resize(fd, cols, rows)")));
                                                        ^
../src/unix/pty.cc:288:18: error: invalid types ‘const int[int]’ for array subscript
   int fd = args[0]->IntegerValue();
                  ^
../src/unix/pty.cc:291:23: error: invalid types ‘const int[int]’ for array subscript
   winp.ws_col = args[1]->IntegerValue();
                       ^
../src/unix/pty.cc:292:23: error: invalid types ‘const int[int]’ for array subscript
   winp.ws_row = args[2]->IntegerValue();
                       ^
../src/unix/pty.cc:298:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("ioctl(2) failed.")));
       ^
../src/unix/pty.cc:298:39: error: ‘ThrowException’ was not declared in this scope
       String::New("ioctl(2) failed.")));
                                       ^
../src/unix/pty.cc:301:20: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return Undefined();
                    ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/unix/pty.cc: At global scope:
../src/unix/pty.cc:311:18: error: ‘Arguments’ does not name a type
 PtyGetProc(const Arguments& args) {
                  ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h: In function ‘v8::Handle<v8::Value> PtyGetProc(const int&)’:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/unix/pty.cc:312:15: error: within this context
   HandleScope scope;
               ^
../src/unix/pty.cc:314:12: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
   if (args.Length() != 2
            ^
../src/unix/pty.cc:315:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[0]->IsNumber()
                 ^
../src/unix/pty.cc:316:17: error: invalid types ‘const int[int]’ for array subscript
       || !args[1]->IsString()) {
                 ^
../src/unix/pty.cc:318:7: error: ‘New’ is not a member of ‘v8::String’
       String::New("Usage: pty.process(fd, tty)")));
       ^
../src/unix/pty.cc:318:50: error: ‘ThrowException’ was not declared in this scope
       String::New("Usage: pty.process(fd, tty)")));
                                                  ^
../src/unix/pty.cc:321:18: error: invalid types ‘const int[int]’ for array subscript
   int fd = args[0]->IntegerValue();
                  ^
../src/unix/pty.cc:323:32: error: invalid types ‘const int[int]’ for array subscript
   String::Utf8Value tty_(args[1]->ToString());
                                ^
../src/unix/pty.cc:329:22: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
     return Undefined();
                      ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:315:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/unix/pty.cc:332:25: error: ‘New’ is not a member of ‘v8::String’
   Local<String> name_ = String::New(name);
                         ^
../src/unix/pty.cc:334:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(name_);
                ^
In file included from ../src/unix/pty.cc:16:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h: In function ‘void init(v8::Handle<v8::Object>)’:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/v8.h:889:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/unix/pty.cc:555:15: error: within this context
   HandleScope scope;
               ^
../src/unix/pty.cc:556:42: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [5], v8::Handle<v8::Value> (&)(const int&))’
   NODE_SET_METHOD(target, "fork", PtyFork);
                                          ^
In file included from ../src/unix/pty.cc:17:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note: candidate: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
 inline void NODE_SET_METHOD(const TypeName& recv,
             ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note:   template argument deduction/substitution failed:
../src/unix/pty.cc:556:42: note:   cannot convert ‘PtyFork’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
   NODE_SET_METHOD(target, "fork", PtyFork);
                                          ^
../src/unix/pty.cc:557:42: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [5], v8::Handle<v8::Value> (&)(const int&))’
   NODE_SET_METHOD(target, "open", PtyOpen);
                                          ^
In file included from ../src/unix/pty.cc:17:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note: candidate: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
 inline void NODE_SET_METHOD(const TypeName& recv,
             ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note:   template argument deduction/substitution failed:
../src/unix/pty.cc:557:42: note:   cannot convert ‘PtyOpen’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
   NODE_SET_METHOD(target, "open", PtyOpen);
                                          ^
../src/unix/pty.cc:558:46: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [7], v8::Handle<v8::Value> (&)(const int&))’
   NODE_SET_METHOD(target, "resize", PtyResize);
                                              ^
In file included from ../src/unix/pty.cc:17:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note: candidate: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
 inline void NODE_SET_METHOD(const TypeName& recv,
             ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note:   template argument deduction/substitution failed:
../src/unix/pty.cc:558:46: note:   cannot convert ‘PtyResize’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
   NODE_SET_METHOD(target, "resize", PtyResize);
                                              ^
../src/unix/pty.cc:559:48: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::Object>&, const char [8], v8::Handle<v8::Value> (&)(const int&))’
   NODE_SET_METHOD(target, "process", PtyGetProc);
                                                ^
In file included from ../src/unix/pty.cc:17:0:
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note: candidate: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback)
 inline void NODE_SET_METHOD(const TypeName& recv,
             ^
/usr/lib/node_modules/codebox/node_modules/pty.js/.node-gyp/5.0.0/include/node/node.h:236:13: note:   template argument deduction/substitution failed:
../src/unix/pty.cc:559:48: note:   cannot convert ‘PtyGetProc’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’
   NODE_SET_METHOD(target, "process", PtyGetProc);
                                                ^
pty.target.mk:88: recipe for target 'Release/obj.target/pty/src/unix/pty.o' failed
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory '/usr/lib/node_modules/codebox/node_modules/pty.js/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.5-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/codebox/node_modules/pty.js
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:pty.js@0.2.3 pty.js@0.2.3 install: `node-gyp rebuild`
npm WARN install:pty.js@0.2.3 Exit status 1

> ctags@0.11.0 install /usr/lib/node_modules/codebox/node_modules/ctags
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.0.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp"
make: Entering directory '/usr/lib/node_modules/codebox/node_modules/ctags/build'
  CC(target) Release/obj.target/ctags/src/readtags.o
  CXX(target) Release/obj.target/ctags/src/tags.o
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*)’:
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:339:13: note: in expansion of macro ‘_NAN_ERROR’
     return  _NAN_ERROR(v8::Exception::Error, errmsg);
             ^
../../nan/nan.h: In function ‘void NanThrowError(const char*)’:
../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
       ^
../../nan/nan.h:343:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
     ^
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                          ^
../../nan/nan.h:343:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
     ^
../../nan/nan.h: In function ‘void NanThrowError(v8::Handle<v8::Value>)’:
../../nan/nan.h:348:5: error: ‘ThrowException’ is not a member of ‘v8’
     v8::ThrowException(error);
     ^
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanError(const char*, int)’:
../../nan/nan.h:355:53: error: ‘New’ is not a member of ‘v8::String’
     v8::Local<v8::Value> err = v8::Exception::Error(v8::String::New(msg));
                                                     ^
../../nan/nan.h:357:14: error: ‘New’ is not a member of ‘v8::String’
     obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
              ^
../../nan/nan.h:357:65: error: no matching function for call to ‘v8::Int32::New(const int&)’
     obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
                                                                 ^
In file included from /usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../../nan/nan.h:134,
                 from ../src/tags.h:5,
                 from ../src/tags.cc:2:
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:2496:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:2496:25: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanTypeError(const char*)’:
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:369:12: note: in expansion of macro ‘_NAN_ERROR’
     return _NAN_ERROR(v8::Exception::TypeError, errmsg);
            ^
../../nan/nan.h: In function ‘void NanThrowTypeError(const char*)’:
../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
       ^
../../nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
     ^
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                          ^
../../nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
     ^
../../nan/nan.h: In function ‘v8::Handle<v8::Value> NanRangeError(const char*)’:
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:377:12: note: in expansion of macro ‘_NAN_ERROR’
     return _NAN_ERROR(v8::Exception::RangeError, errmsg);
            ^
../../nan/nan.h: In function ‘void NanThrowRangeError(const char*)’:
../../nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
       ^
../../nan/nan.h:381:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
     ^
../../nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’
 # define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
                                      ^
../../nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
       v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                          ^
../../nan/nan.h:381:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
     _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
     ^
../../nan/nan.h: At global scope:
../../nan/nan.h:406:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^
../../nan/nan.h:141:71: note: in definition of macro ‘NAN_INLINE’
 # define NAN_INLINE(declarator) inline __attribute__((always_inline)) declarator
                                                                       ^
../../nan/nan.h:406:35: error: expected ‘,’ or ‘...’ before ‘callback’
     , node::smalloc::FreeCallback callback
                                   ^
../../nan/nan.h:141:71: note: in definition of macro ‘NAN_INLINE’
 # define NAN_INLINE(declarator) inline __attribute__((always_inline)) declarator
                                                                       ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../../nan/nan.h:409:44: error: ‘callback’ was not declared in this scope
     return node::Buffer::New(data, length, callback, hint);
                                            ^
../../nan/nan.h:409:54: error: ‘hint’ was not declared in this scope
     return node::Buffer::New(data, length, callback, hint);
                                                      ^
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, uint32_t)’:
../../nan/nan.h:416:40: error: no matching function for call to ‘New(char*&, uint32_t&)’
     return node::Buffer::New(data, size);
                                        ^
In file included from ../../nan/nan.h:135:0,
                 from ../src/tags.h:5,
                 from ../src/tags.cc:2:
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:28:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:28:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:36:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:36:40: note:   candidate expects 5 arguments, 2 provided
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note:   candidate expects 3 arguments, 2 provided
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:420:34: error: no matching function for call to ‘New(uint32_t&)’
     return node::Buffer::New(size);
                                  ^
In file included from ../../nan/nan.h:135:0,
                 from ../src/tags.h:5,
                 from ../src/tags.cc:2:
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:28:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:28:40: note:   candidate expects 2 arguments, 1 provided
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:31:40: note:   candidate expects 3 arguments, 1 provided
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:36:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:36:40: note:   candidate expects 5 arguments, 1 provided
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node_buffer.h:43:40: note:   candidate expects 3 arguments, 1 provided
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../../nan/nan.h:427:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(data, size);
            ^
../../nan/nan.h: In constructor ‘NanCallback::NanCallback()’:
../../nan/nan.h:727:49: error: no matching function for call to ‘v8::Object::New()’
     v8::Local<v8::Object> obj = v8::Object::New();
                                                 ^
In file included from /usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../../nan/nan.h:134,
                 from ../src/tags.h:5,
                 from ../src/tags.cc:2:
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:2930:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:2930:24: note:   candidate expects 1 argument, 0 provided
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h: In constructor ‘NanCallback::NanCallback(v8::Handle<v8::Function>&)’:
../../nan/nan.h:733:49: error: no matching function for call to ‘v8::Object::New()’
     v8::Local<v8::Object> obj = v8::Object::New();
                                                 ^
In file included from /usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../../nan/nan.h:134,
                 from ../src/tags.h:5,
                 from ../src/tags.cc:2:
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:2930:24: note: candidate: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*)
   static Local<Object> New(Isolate* isolate);
                        ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:2930:24: note:   candidate expects 1 argument, 0 provided
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h: In destructor ‘NanCallback::~NanCallback()’:
../../nan/nan.h:740:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Dispose’
     handle.Dispose();
            ^
../../nan/nan.h:741:12: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
     handle.Clear();
            ^
../../nan/nan.h: In member function ‘void NanCallback::SetFunction(v8::Handle<v8::Function>&)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:746:39: note: in expansion of macro ‘NanSymbol’
     NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                       ^
../../nan/nan.h: In member function ‘v8::Local<v8::Function> NanCallback::GetFunction()’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:750:46: note: in expansion of macro ‘NanSymbol’
     return NanPersistentToLocal(handle)->Get(NanSymbol("callback"))
                                              ^
../../nan/nan.h:751:25: error: expected primary-expression before ‘>’ token
         .As<v8::Function>();
                         ^
../../nan/nan.h:751:27: error: expected primary-expression before ‘)’ token
         .As<v8::Function>();
                           ^
../../nan/nan.h: In member function ‘void NanCallback::Call(int, v8::Handle<v8::Value>*)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:759:13: note: in expansion of macro ‘NanSymbol’
         Get(NanSymbol("callback")).As<v8::Function>();
             ^
../../nan/nan.h:759:51: error: expected primary-expression before ‘>’ token
         Get(NanSymbol("callback")).As<v8::Function>();
                                                   ^
../../nan/nan.h:759:53: error: expected primary-expression before ‘)’ token
         Get(NanSymbol("callback")).As<v8::Function>();
                                                     ^
../../nan/nan.h:761:9: error: ‘GetCurrent’ is not a member of ‘v8::Context’
         v8::Context::GetCurrent()->Global()
         ^
../../nan/nan.h: In member function ‘void NanAsyncWorker::SavePersistent(const char*, v8::Local<v8::Object>&)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:808:17: note: in expansion of macro ‘NanSymbol’
     handle->Set(NanSymbol(key), obj);
                 ^
../../nan/nan.h: In member function ‘v8::Local<v8::Object> NanAsyncWorker::GetFromPersistent(const char*)’:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../../nan/nan.h:815:24: note: in expansion of macro ‘NanSymbol’
     return handle->Get(NanSymbol(key)).As<v8::Object>();
                        ^
../../nan/nan.h:815:53: error: expected primary-expression before ‘>’ token
     return handle->Get(NanSymbol(key)).As<v8::Object>();
                                                     ^
../../nan/nan.h:815:55: error: expected primary-expression before ‘)’ token
     return handle->Get(NanSymbol(key)).As<v8::Object>();
                                                       ^
../../nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’:
../../nan/nan.h:837:30: error: ‘New’ is not a member of ‘v8::String’
         v8::Exception::Error(v8::String::New(errmsg))
                              ^
../../nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:
../../nan/nan.h:1005:12: error: ‘class v8::String’ has no member named ‘IsExternalAscii’
   if (str->IsExternalAscii()) {
            ^
../../nan/nan.h:1006:23: error: ‘ExternalAsciiStringResource’ in ‘class v8::String’ does not name a type
     const v8::String::ExternalAsciiStringResource* ext;
                       ^
../../nan/nan.h:1007:5: error: ‘ext’ was not declared in this scope
     ext = str->GetExternalAsciiStringResource();
     ^
../../nan/nan.h:1007:16: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’
     ext = str->GetExternalAsciiStringResource();
                ^
../src/tags.cc: In static member function ‘static void Tags::Init(v8::Handle<v8::Object>)’:
../src/tags.cc:9:72: error: no matching function for call to ‘v8::FunctionTemplate::New(void (&)(const v8::FunctionCallbackInfo<v8::Value>&))’
   Local<FunctionTemplate> newTemplate = FunctionTemplate::New(Tags::New);
                                                                        ^
In file included from /usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../../nan/nan.h:134,
                 from ../src/tags.h:5,
                 from ../src/tags.cc:2:
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:4348:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:4348:34: note:   no known conversion for argument 1 from ‘void(const v8::FunctionCallbackInfo<v8::Value>&)’ to ‘v8::Isolate*’
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../src/tags.cc:10:29: note: in expansion of macro ‘NanSymbol’
   newTemplate->SetClassName(NanSymbol("Tags"));
                             ^
../../nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
 #define NanSymbol(value) v8::String::NewSymbol(value)
                          ^
../src/tags.cc:19:15: note: in expansion of macro ‘NanSymbol’
   target->Set(NanSymbol("Tags"), newTemplate->GetFunction());
               ^
../src/tags.cc: In static member function ‘static void Tags::Exists(const v8::FunctionCallbackInfo<v8::Value>&)’:
../src/tags.cc:78:52: error: no matching function for call to ‘v8::Boolean::New(bool)’
   NanReturnValue(Boolean::New(GetFile(args) != NULL));
                                                    ^
../../nan/nan.h:301:65: note: in definition of macro ‘NanReturnValue’
 # define NanReturnValue(value) return args.GetReturnValue().Set(value)
                                                                 ^
In file included from /usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/node.h:42:0,
                 from ../../nan/nan.h:134,
                 from ../src/tags.h:5,
                 from ../src/tags.cc:2:
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:7593:16: note: candidate: static v8::Local<v8::Boolean> v8::Boolean::New(v8::Isolate*, bool)
 Local<Boolean> Boolean::New(Isolate* isolate, bool value) {
                ^
/usr/lib/node_modules/codebox/node_modules/ctags/.node-gyp/5.0.0/include/node/v8.h:7593:16: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/tags.h:5:0,
                 from ../src/tags.cc:2:
../../nan/nan.h:301:70: error: return-statement with a value, in function returning 'void' [-fpermissive]
 # define NanReturnValue(value) return args.GetReturnValue().Set(value)
                                                                      ^
../src/tags.cc:78:3: note: in expansion of macro ‘NanReturnValue’
   NanReturnValue(Boolean::New(GetFile(args) != NULL));
   ^
../../nan/nan.h: In instantiation of ‘void NanDisposePersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&) [with T = v8::Object]’:
../../nan/nan.h:786:44:   required from here
../../nan/nan.h:394:5: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Clear’
     handle.Clear();
     ^
ctags.target.mk:93: recipe for target 'Release/obj.target/ctags/src/tags.o' failed
make: *** [Release/obj.target/ctags/src/tags.o] Error 1
make: Leaving directory '/usr/lib/node_modules/codebox/node_modules/ctags/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.5-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/codebox/node_modules/ctags
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
npm WARN install:ctags@0.11.0 ctags@0.11.0 install: `node-gyp rebuild`
npm WARN install:ctags@0.11.0 Exit status 1

> ws@0.4.32 install /usr/lib/node_modules/codebox/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/usr/lib/node_modules/codebox/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
bufferutil.target.mk:92: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: Leaving directory '/usr/lib/node_modules/codebox/node_modules/ws/build'
/usr/lib
└── (empty)

npm WARN EPEERINVALID headless-terminal@0.4.0 requires a peer of screen-buffer@~0.4.0 but none was installed.
npm ERR! code 1

I’ve gotten very similar errors on both CentOS and a fresh install of Arch Linux.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
kozhincommented, Dec 9, 2015

With the latest nodejs & npm Codebox doesn’t build at all. I used nodejs 0.10 to make Codebox run properly.

0reactions
mwaeckerlincommented, Dec 5, 2017

Still not solved!?! Does anyone care about it, or is codebox dead?

Here is how I tried to build it:

docker run -p 8000:80 -it --rm ubuntu bash
root@4704448acd44:/# apt-get update
root@4704448acd44:/# apt-get install -y npm git libpcap-dev
root@4704448acd44:/# ln -s /usr/bin/nodejs /usr/bin/node
root@4704448acd44:/# npm install -g codebox
root@4704448acd44:/# npm -v
3.5.2
root@4704448acd44:/# nodejs -v
v4.2.6
Read more comments on GitHub >

github_iconTop Results From Across the Web

Try the latest stable version of npm
js installer, after doing one of the previous steps, do the following. Go into %ProgramFiles%\nodejs\node_modules\npm and copy the file named npmrc in the...
Read more >
`npm i core-js@latest` won't install because it can't build... core ...
When trying a vanilla npm i , well, first I got some places where the library's package.json conflicted with its dependencies' dependencies ...
Read more >
[BUG] unable to resolve dependency tree · Issue #2000 · npm/cli
Current Behavior: When I run npm i @typescript-eslint/parser@latest, I get: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve ...
Read more >
Installing Dev Dependencies with npm: Beginners' Guide
With the package manager installation, dependencies get automatically downloaded and listed in the package.json file of the package manager ...
Read more >
Prevent npm install for not supported Node.js versions
If a project includes an .npmrc that defines a strict engine, people cannot run npm install if their Node.js is not fulfilling the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found