I really need some help
only-gale opened this issue · 0 comments
I couldn't install the app, the errors will be listed below:
First, I got the output like this after I ran "sudo npm install":
kerberos@0.0.4 install /home/gale/Code/chirp/node_modules/kerberos
(node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory /home/gale/Code/chirp/node_modules/kerberos/build' SOLINK_MODULE(target) Release/obj.target/kerberos.node COPY Release/kerberos.node make: Leaving directory
/home/gale/Code/chirp/node_modules/kerberos/build'
bson@0.2.22 install /home/gale/Code/chirp/node_modules/bson
(node-gyp rebuild 2> builderror.log) || (exit 0)
make: Entering directory /home/gale/Code/chirp/node_modules/bson/build' CXX(target) Release/obj.target/bson/ext/bson.o make: Leaving directory
/home/gale/Code/chirp/node_modules/bson/build'
Start@0.0.0 /home/gale/Code/chirp
├── bcrypt-nodejs@0.0.3
├─┬ body-parser@1.8.4
│ ├── bytes@1.0.0
│ ├── depd@0.4.5
│ ├── iconv-lite@0.4.4
│ ├── media-typer@0.3.0
│ ├─┬ on-finished@2.1.0
│ │ └── ee-first@1.0.5
│ ├── qs@2.2.4
│ ├── raw-body@1.3.0
│ └─┬ type-is@1.5.7
│ └─┬ mime-types@2.0.14
│ └── mime-db@1.12.0
├─┬ cookie-parser@1.3.5
│ ├── cookie@0.1.3
│ └── cookie-signature@1.0.6
├─┬ debug@2.2.0
│ └── ms@0.7.1
├── ejs@0.8.8
├─┬ express@4.9.8
│ ├─┬ accepts@1.1.4
│ │ └── negotiator@0.4.9
│ ├── cookie@0.1.2
│ ├── cookie-signature@1.0.5
│ ├─┬ debug@2.0.0
│ │ └── ms@0.6.2
│ ├── escape-html@1.0.1
│ ├─┬ etag@1.4.0
│ │ └── crc@3.0.0
│ ├─┬ finalhandler@0.2.0
│ │ └─┬ debug@2.0.0
│ │ └── ms@0.6.2
│ ├── fresh@0.2.4
│ ├── merge-descriptors@0.0.2
│ ├── methods@1.1.0
│ ├── parseurl@1.3.1
│ ├── path-to-regexp@0.1.3
│ ├─┬ proxy-addr@1.0.10
│ │ ├── forwarded@0.1.0
│ │ └── ipaddr.js@1.0.5
│ ├── range-parser@1.0.3
│ ├─┬ send@0.9.3
│ │ ├── debug@2.0.0
│ │ ├── destroy@1.0.3
│ │ ├── mime@1.2.11
│ │ └── ms@0.6.2
│ ├── serve-static@1.6.5
│ ├── utils-merge@1.0.0
│ └── vary@1.0.1
├─┬ express-session@1.13.0
│ ├── cookie@0.2.3
│ ├── crc@3.4.0
│ ├── depd@1.1.0
│ ├── on-headers@1.0.1
│ └─┬ uid-safe@2.0.0
│ └── base64-url@1.2.1
├─┬ mongoose@3.9.7
│ ├── async@0.9.0
│ ├── hooks@0.3.2
│ ├── kareem@0.0.4
│ ├─┬ mongodb@1.4.12
│ │ ├─┬ bson@0.2.22
│ │ │ └── nan@1.8.4
│ │ ├── kerberos@0.0.4
│ │ └─┬ readable-stream@2.0.6
│ │ ├── core-util-is@1.0.2
│ │ ├── inherits@2.0.1
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.6
│ │ ├── string_decoder@0.10.31
│ │ └── util-deprecate@1.0.2
│ ├── mpath@0.1.1
│ ├── mpromise@0.5.4
│ ├─┬ mquery@1.0.0
│ │ └── debug@0.7.4
│ ├── ms@0.1.0
│ ├── muri@0.3.1
│ ├── regexp-clone@0.0.1
│ └── sliced@0.0.5
├─┬ morgan@1.3.2
│ └── basic-auth@1.0.0
├─┬ passport@0.2.2
│ ├── passport-strategy@1.0.0
│ └── pause@0.0.1
├── passport-local@1.0.0
└─┬ serve-favicon@2.1.7
├─┬ etag@1.5.1
│ └── crc@3.2.1
└── ms@0.6.2
then I followed the first tip and ran "make":
gale@gale-ThinkPad-T450s:/Code/chirp/node_modules/kerberos/build$ make/Code/chirp/node_modules/kerberos/build$ cd /home/gale/Code/chirp/node_modules/bson/build
make: Nothing to be done for `all'.
the second tip's output:
gale@gale-ThinkPad-T450s:
gale@gale-ThinkPad-T450s:~/Code/chirp/node_modules/bson/build$ make
CXX(target) Release/obj.target/bson/ext/bson.o
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h:261:25: error: redefinition of ‘template v8::Local NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../../nan/nan.h:256:25: error: ‘template v8::Local NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char, uint32_t)’:
../../nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate, const char&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../../nan/nan.h:672:67: note: candidates are:
In file included from ../ext/bson.cc:24:0:
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char_’ to ‘char_’
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char_, uint32_t)’:
../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONDeserialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:825:44: warning: ‘ssize_t node::DecodeBytes(v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:317): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
ssize_t len = DecodeBytes(args[0], BINARY);
^
../ext/bson.cc:833:41: warning: ‘ssize_t node::DecodeWrite(char_, size_t, v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:330): Use DecodeWrite(isolate, ...) [-Wdeprecated-declarations]
DecodeWrite(data, len, args[0], BINARY);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONSerialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:928:73: warning: ‘v8::Localv8::Value node::Encode(const void_, size_t, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:298): Use Encode(isolate, ...) [-Wdeprecated-declarations]
Local bin_value = Encode(serialized_object, object_size, BINARY)->ToString();
^
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char_, uint32_t)’:
../../nan/nan.h:673:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Release/obj.target/bson/ext/bson.o] Error 1
And then I absolutely had no idea with this, please help me, thanks a lot.