sinopia icon indicating copy to clipboard operation
sinopia copied to clipboard

Installation errors

Open MitchK opened this issue 7 years ago • 5 comments

When I install Sinopia under Ubuntu 16.04 and Nodejs 6.9, I get:

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
 
> [email protected] install /usr/lib/node_modules/sinopia/node_modules/crypt3
> node-gyp rebuild

make: Entering directory '/usr/lib/node_modules/sinopia/node_modules/crypt3/build'
  CXX(target) Release/obj.target/crypt3/crypt3.o
In file included from ../crypt3.cc:7:0:
../node_modules/nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                         ^
../node_modules/nan/nan.h:256: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) {
                         ^
../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^
../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
     , node::smalloc::FreeCallback callback
                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                  ^
../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                            ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../node_modules/nan/nan.h:672: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 ../node_modules/nan/nan.h:25:0,
                 from ../crypt3.cc:7:
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:34: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,
                                        ^
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:34:40: note:   conversion of argument 3 would be ill-formed:
In file included from ../crypt3.cc:7:0:
../node_modules/nan/nan.h:672: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 ../node_modules/nan/nan.h:25:0,
                 from ../crypt3.cc:7:
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:46: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,
                                        ^
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:46:40: note:   conversion of argument 2 would be ill-formed:
In file included from ../crypt3.cc:7:0:
../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../node_modules/nan/nan.h:676: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);
                             ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
            ^
../crypt3.cc: In function ‘void Method(const v8::FunctionCallbackInfo<v8::Value>&)’:
../crypt3.cc:29:59: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
   return NanThrowError(node::ErrnoException(errno, "crypt"));
                                                           ^
In file included from ../crypt3.cc:3:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:100:45: note: declared here
                 inline v8::Local<v8::Value> ErrnoException(
                                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
crypt3.target.mk:96: recipe for target 'Release/obj.target/crypt3/crypt3.o' failed
make: *** [Release/obj.target/crypt3/crypt3.o] Error 1
make: Leaving directory '/usr/lib/node_modules/sinopia/node_modules/crypt3/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:276: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:211:12)
gyp ERR! System Linux 4.4.0-47-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/sinopia/node_modules/crypt3
gyp ERR! node -v v4.6.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
 
> [email protected] install /usr/lib/node_modules/sinopia/node_modules/fs-ext
> node-gyp configure build

make: Entering directory '/usr/lib/node_modules/sinopia/node_modules/fs-ext/build'
  CXX(target) Release/obj.target/fs-ext/fs-ext.o
In file included from ../fs-ext.cc:27:0:
../node_modules/nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                         ^
../node_modules/nan/nan.h:256: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) {
                         ^
../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback
             ^
../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
     , node::smalloc::FreeCallback callback
                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                  ^
../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
         v8::Isolate::GetCurrent(), data, length, callback, hint);
                                                            ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
../node_modules/nan/nan.h:672: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 ../node_modules/nan/nan.h:25:0,
                 from ../fs-ext.cc:27:
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:34: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,
                                        ^
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:34:40: note:   conversion of argument 3 would be ill-formed:
In file included from ../fs-ext.cc:27:0:
../node_modules/nan/nan.h:672: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 ../node_modules/nan/nan.h:25:0,
                 from ../fs-ext.cc:27:
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:46: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,
                                        ^
/home/i841712/.node-gyp/4.6.2/include/node/node_buffer.h:46:40: note:   conversion of argument 2 would be ill-formed:
In file included from ../fs-ext.cc:27:0:
../node_modules/nan/nan.h:672:67: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
     return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
                                                                   ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
../node_modules/nan/nan.h:676: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);
                             ^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
     return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
            ^
../fs-ext.cc: In function ‘void EIO_After(uv_work_t*)’:
../fs-ext.cc:108:47: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
     argv[0] = ErrnoException(store_data->error);
                                               ^
In file included from ../fs-ext.cc:20:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:100:45: note: declared here
                 inline v8::Local<v8::Value> ErrnoException(
                                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
../fs-ext.cc:156:29: warning: ‘void node::FatalException(const v8::TryCatch&)’ is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
     FatalException(try_catch);
                             ^
In file included from ../fs-ext.cc:20:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:284:29: note: declared here
                 inline void FatalException(const v8::TryCatch& try_catch) {
                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
../fs-ext.cc: In function ‘void Flock(const v8::FunctionCallbackInfo<v8::Value>&)’:
../fs-ext.cc:299:58: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
     if (i != 0) return NanThrowError(ErrnoException(errno));
                                                          ^
In file included from ../fs-ext.cc:20:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:100:45: note: declared here
                 inline v8::Local<v8::Value> ErrnoException(
                                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
../fs-ext.cc: In function ‘void Seek(const v8::FunctionCallbackInfo<v8::Value>&)’:
../fs-ext.cc:343:69: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
     if (offs_result == -1) return NanThrowError(ErrnoException(errno));
                                                                     ^
In file included from ../fs-ext.cc:20:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:100:45: note: declared here
                 inline v8::Local<v8::Value> ErrnoException(
                                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
../fs-ext.cc: In function ‘void Fcntl(const v8::FunctionCallbackInfo<v8::Value>&)’:
../fs-ext.cc:380:64: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
     if (result == -1) return NanThrowError(ErrnoException(errno));
                                                                ^
In file included from ../fs-ext.cc:20:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:100:45: note: declared here
                 inline v8::Local<v8::Value> ErrnoException(
                                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
../fs-ext.cc: In function ‘void UTime(const v8::FunctionCallbackInfo<v8::Value>&)’:
../fs-ext.cc:439:80: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
  if (ret != 0) return NanThrowError(ErrnoException(errno, "utime", "", *path));
                                                                             ^
In file included from ../fs-ext.cc:20:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:100:45: note: declared here
                 inline v8::Local<v8::Value> ErrnoException(
                                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
../fs-ext.cc: In function ‘void StatVFS(const v8::FunctionCallbackInfo<v8::Value>&)’:
../fs-ext.cc:476:82: warning: ‘v8::Local<v8::Value> node::ErrnoException(int, const char*, const char*, const char*)’ is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
 f (ret != 0) return NanThrowError(ErrnoException(errno, "statvfs", "", *path));
                                                                             ^
In file included from ../fs-ext.cc:20:0:
/home/i841712/.node-gyp/4.6.2/include/node/node.h:100:45: note: declared here
                 inline v8::Local<v8::Value> ErrnoException(
                                             ^
/home/i841712/.node-gyp/4.6.2/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
fs-ext.target.mk:96: recipe for target 'Release/obj.target/fs-ext/fs-ext.o' failed
make: *** [Release/obj.target/fs-ext/fs-ext.o] Error 1
make: Leaving directory '/usr/lib/node_modules/sinopia/node_modules/fs-ext/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:276: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:211:12)
gyp ERR! System Linux 4.4.0-47-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/lib/node_modules/sinopia/node_modules/fs-ext
gyp ERR! node -v v4.6.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN optional dep failed, continuing [email protected]

> [email protected] install /usr/lib/node_modules/sinopia/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js

npm WARN optional dep failed, continuing [email protected]
/usr/bin/sinopia -> /usr/lib/node_modules/sinopia/bin/sinopia
[email protected] /usr/lib/node_modules/sinopia
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected])

MitchK avatar Dec 09 '16 20:12 MitchK

Same error when installing under MacOS Sierra 10.12.1 (16B2555) and Nodejs v7.2.1 😢

Miguel-Herrero avatar Dec 15 '16 11:12 Miguel-Herrero

I am also having a similar error. It seems to work though when running sinopia. Pointed the registry to it and seems to install stuff through it.

  • Platform: Ubuntu 16.04
  • Node: 7.2.1
  • Gist: https://gist.github.com/ziyan-junaideen/88341d564d37d499c0a1c5901bd9a7c7

Extra:

I had this issue with Node 5., I updated it to 7.2 wondering if the old node was the issue, but still remained.

ziyan-junaideen avatar Dec 18 '16 05:12 ziyan-junaideen

I also have the same error exact stack trace during the build. I am on Fedora 25 64bit, node-7.2.1, npm-3.10.10.

kferrone avatar Jan 17 '17 18:01 kferrone

me too ios: 10.10.5 macos sierra node: v8.3.0 npm: 5.3.0

Last login: Tue Aug 15 18:00:00 on ttys005 jiezhiyongdeMacBook-Air:sinopia jiezhiyong$ npm install sinopia -g npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 /usr/local/bin/sinopia -> /usr/local/lib/node_modules/sinopia/bin/sinopia

[email protected] install /usr/local/lib/node_modules/sinopia/node_modules/bunyan/node_modules/dtrace-provider node scripts/install.js


Building dtrace-provider failed with exit code 1 and signal 0 re-run install with environment variable V set to see the build output

[email protected] install /usr/local/lib/node_modules/sinopia/node_modules/crypt3 node-gyp rebuild

CXX(target) Release/obj.target/crypt3/crypt3.o In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: ../node_modules/nan/nan_new.h:34:56: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations] Tov8::Int32(v8::Handlev8::Integer i) { return i->ToInt32(); } ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:9614:21: note: 'ToInt32' has been explicitly marked deprecated here Local<Int32> Value::ToInt32() const { ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: ../node_modules/nan/nan_new.h:39:56: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations] Tov8::Uint32(v8::Handlev8::Integer i) { return i->ToUint32(); } ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:9608:22: note: 'ToUint32' has been explicitly marked deprecated here Local<Uint32> Value::ToUint32() const { ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:49:29: warning: 'New' is deprecated [-Wdeprecated-declarations] return v8::BooleanObject::New(value).Asv8::BooleanObject(); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:4749:56: note: 'New' has been explicitly marked deprecated here V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value)); ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:166:30: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:173:30: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:205:22: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations] return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value, ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:2626:21: note: 'NewFromOneByte' has been explicitly marked deprecated here Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data, ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:217:22: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations] return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:2664:38: note: 'NewExternal' has been explicitly marked deprecated here Local<String> NewExternal( ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:237:30: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1360:45: note: 'CompileUnbound' has been explicitly marked deprecated here Local<UnboundScript> CompileUnbound( ^ In file included from ../crypt3.cc:7: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:244:30: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1360:45: note: 'CompileUnbound' has been explicitly marked deprecated here Local<UnboundScript> CompileUnbound( ^ In file included from ../crypt3.cc:7: ../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal' NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) { ^ ../node_modules/nan/nan.h:256:25: note: previous definition is here NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) { ^ ../node_modules/nan/nan.h:289:39: warning: 'IdleNotification' is deprecated [-Wdeprecated-declarations] return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:7335:22: note: 'IdleNotification' has been explicitly marked deprecated here bool IdleNotification(int idle_time_in_ms)); ^ In file included from ../crypt3.cc:7: ../node_modules/nan/nan.h:473:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate' v8::Isolate::GCEpilogueCallback callback ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:479:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate' v8::Isolate::GCEpilogueCallback callback) { ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:484:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate' v8::Isolate::GCPrologueCallback callback ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:490:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate' v8::Isolate::GCPrologueCallback callback) { ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:569:15: error: no type named 'WeakCallbackData' in namespace 'v8' const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) { ~~~~^ ../node_modules/nan/nan.h:569:31: error: expected ')' const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) { ^ ../node_modules/nan/nan.h:568:41: note: to match this '(' static void _NanWeakCallbackDispatcher( ^ ../node_modules/nan/nan.h:570:42: error: use of undeclared identifier 'data' _NanWeakCallbackInfo<T, P> info = data.GetParameter(); ^ ../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node' , node::smalloc::FreeCallback callback ~~~~~~^ ../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New' return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^~~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:67:40: note: candidate function not viable: 2nd argument ('const char ') would lose const qualifier NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:55:40: note: candidate function not viable: no known conversion from 'const char ' to 'v8::Localv8::String' for 2nd argument NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:52:40: note: candidate function not viable: requires 2 arguments, but 3 were provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, size_t length); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:60:40: note: candidate function not viable: requires 5 arguments, but 3 were provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, ^ In file included from ../crypt3.cc:7: ../node_modules/nan/nan.h:676:12: error: no viable conversion from returned value of type 'v8::MaybeLocalv8::Object' to function return type 'v8::Localv8::Object' return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:196:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'const v8::Localv8::Object &' for 1st argument class Local { ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:196:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object &&' for 1st argument /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:200:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal' V8_INLINE Local(Local<S> that) ^ In file included from ../crypt3.cc:7: ../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer' return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ~~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:710:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ In file included from ../crypt3.cc:7: ../node_modules/nan/nan.h:717:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ ../crypt3.cc:29:30: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations] return NanThrowError(node::ErrnoException(errno, "crypt")); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:121:45: note: 'ErrnoException' has been explicitly marked deprecated here inline v8::Localv8::Value ErrnoException( ^ In file included from ../crypt3.cc:3: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Primitive volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization 'v8::Localv8::Primitive::Localv8::Value' requested here return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent()))); ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

In file included from ../crypt3.cc:3: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Boolean volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization 'v8::Localv8::Boolean::Localv8::Value' requested here return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent()))); ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

In file included from ../crypt3.cc:3: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Function volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization 'v8::Localv8::Function::Localv8::Value' requested here return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex) ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

In file included from ../crypt3.cc:3: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Object volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Localv8::Object::Localv8::Value' requested here return NanEscapeScope(handle->Get(NanNew(key)).Asv8::Object()); ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

13 warnings and 16 errors generated. make: *** [Release/obj.target/crypt3/crypt3.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:258:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 16.6.0 gyp ERR! command "/usr/local/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/sinopia/node_modules/crypt3 gyp ERR! node -v v8.3.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok

[email protected] install /usr/local/lib/node_modules/sinopia/node_modules/fs-ext node-gyp configure build

CXX(target) Release/obj.target/fs-ext/fs-ext.o In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: ../node_modules/nan/nan_new.h:34:56: warning: 'ToInt32' is deprecated [-Wdeprecated-declarations] Tov8::Int32(v8::Handlev8::Integer i) { return i->ToInt32(); } ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:9614:21: note: 'ToInt32' has been explicitly marked deprecated here Local<Int32> Value::ToInt32() const { ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: ../node_modules/nan/nan_new.h:39:56: warning: 'ToUint32' is deprecated [-Wdeprecated-declarations] Tov8::Uint32(v8::Handlev8::Integer i) { return i->ToUint32(); } ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:9608:22: note: 'ToUint32' has been explicitly marked deprecated here Local<Uint32> Value::ToUint32() const { ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:49:29: warning: 'New' is deprecated [-Wdeprecated-declarations] return v8::BooleanObject::New(value).Asv8::BooleanObject(); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:4749:56: note: 'New' has been explicitly marked deprecated here V8_DEPRECATED("Pass an isolate", static Local<Value> New(bool value)); ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:166:30: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:173:30: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:205:22: warning: 'NewFromOneByte' is deprecated [-Wdeprecated-declarations] return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value, ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:2626:21: note: 'NewFromOneByte' has been explicitly marked deprecated here Local<String> NewFromOneByte(Isolate* isolate, const uint8_t* data, ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:217:22: warning: 'NewExternal' is deprecated [-Wdeprecated-declarations] return v8::String::NewExternal(v8::Isolate::GetCurrent(), value); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:2664:38: note: 'NewExternal' has been explicitly marked deprecated here Local<String> NewExternal( ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:237:30: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1360:45: note: 'CompileUnbound' has been explicitly marked deprecated here Local<UnboundScript> CompileUnbound( ^ In file included from ../fs-ext.cc:27: In file included from ../node_modules/nan/nan.h:82: In file included from ../node_modules/nan/nan_new.h:189: ../node_modules/nan/nan_implementation_12_inl.h:244:30: warning: 'CompileUnbound' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::CompileUnbound(v8::Isolate::GetCurrent(), &src); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1360:45: note: 'CompileUnbound' has been explicitly marked deprecated here Local<UnboundScript> CompileUnbound( ^ In file included from ../fs-ext.cc:27: ../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal' NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) { ^ ../node_modules/nan/nan.h:256:25: note: previous definition is here NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) { ^ ../node_modules/nan/nan.h:289:39: warning: 'IdleNotification' is deprecated [-Wdeprecated-declarations] return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:7335:22: note: 'IdleNotification' has been explicitly marked deprecated here bool IdleNotification(int idle_time_in_ms)); ^ In file included from ../fs-ext.cc:27: ../node_modules/nan/nan.h:473:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate' v8::Isolate::GCEpilogueCallback callback ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:479:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate' v8::Isolate::GCEpilogueCallback callback) { ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:484:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate' v8::Isolate::GCPrologueCallback callback ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:490:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate' v8::Isolate::GCPrologueCallback callback) { ~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:569:15: error: no type named 'WeakCallbackData' in namespace 'v8' const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) { ~~~~^ ../node_modules/nan/nan.h:569:31: error: expected ')' const v8::WeakCallbackData<T, _NanWeakCallbackInfo<T, P> > &data) { ^ ../node_modules/nan/nan.h:568:41: note: to match this '(' static void _NanWeakCallbackDispatcher( ^ ../node_modules/nan/nan.h:570:42: error: use of undeclared identifier 'data' _NanWeakCallbackInfo<T, P> info = data.GetParameter(); ^ ../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node' , node::smalloc::FreeCallback callback ~~~~~~^ ../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New' return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^~~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:67:40: note: candidate function not viable: 2nd argument ('const char ') would lose const qualifier NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:55:40: note: candidate function not viable: no known conversion from 'const char ' to 'v8::Localv8::String' for 2nd argument NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:52:40: note: candidate function not viable: requires 2 arguments, but 3 were provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, size_t length); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node_buffer.h:60:40: note: candidate function not viable: requires 5 arguments, but 3 were provided NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, ^ In file included from ../fs-ext.cc:27: ../node_modules/nan/nan.h:676:12: error: no viable conversion from returned value of type 'v8::MaybeLocalv8::Object' to function return type 'v8::Localv8::Object' return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:196:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'const v8::Localv8::Object &' for 1st argument class Local { ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:196:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object &&' for 1st argument /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:200:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal' V8_INLINE Local(Local<S> that) ^ In file included from ../fs-ext.cc:27: ../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer' return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ~~~~~~~~~~~~~~^ ../node_modules/nan/nan.h:710:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ In file included from ../fs-ext.cc:27: ../node_modules/nan/nan.h:717:32: warning: 'Compile' is deprecated [-Wdeprecated-declarations] return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:1380:21: note: 'Compile' has been explicitly marked deprecated here Local<Script> Compile(Isolate* isolate, Source* source, ^ ../fs-ext.cc:108:15: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations] argv[0] = ErrnoException(store_data->error); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:121:45: note: 'ErrnoException' has been explicitly marked deprecated here inline v8::Localv8::Value ErrnoException( ^ ../fs-ext.cc:151:12: warning: 'TryCatch' is deprecated [-Wdeprecated-declarations] TryCatch try_catch; ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:8157:40: note: 'TryCatch' has been explicitly marked deprecated here V8_DEPRECATED("Use isolate version", TryCatch()); ^ ../fs-ext.cc:156:5: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations] FatalException(try_catch); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:318:29: note: 'FatalException' has been explicitly marked deprecated here inline void FatalException(const v8::TryCatch& try_catch) { ^ ../fs-ext.cc:299:38: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations] if (i != 0) return NanThrowError(ErrnoException(errno)); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:121:45: note: 'ErrnoException' has been explicitly marked deprecated here inline v8::Localv8::Value ErrnoException( ^ ../fs-ext.cc:343:49: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations] if (offs_result == -1) return NanThrowError(ErrnoException(errno)); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:121:45: note: 'ErrnoException' has been explicitly marked deprecated here inline v8::Localv8::Value ErrnoException( ^ ../fs-ext.cc:380:44: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations] if (result == -1) return NanThrowError(ErrnoException(errno)); ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:121:45: note: 'ErrnoException' has been explicitly marked deprecated here inline v8::Localv8::Value ErrnoException( ^ ../fs-ext.cc:439:40: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations] if (ret != 0) return NanThrowError(ErrnoException(errno, "utime", ""... ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:121:45: note: 'ErrnoException' has been explicitly marked deprecated here inline v8::Localv8::Value ErrnoException( ^ ../fs-ext.cc:476:40: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations] if (ret != 0) return NanThrowError(ErrnoException(errno, "statvfs", ... ^ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:121:45: note: 'ErrnoException' has been explicitly marked deprecated here inline v8::Localv8::Value ErrnoException( ^ In file included from ../fs-ext.cc:20: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Primitive volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization 'v8::Localv8::Primitive::Localv8::Value' requested here return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent()))); ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

In file included from ../fs-ext.cc:20: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Boolean volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization 'v8::Localv8::Boolean::Localv8::Value' requested here return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent()))); ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

In file included from ../fs-ext.cc:20: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Function volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization 'v8::Localv8::Function::Localv8::Value' requested here return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex) ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

In file included from ../fs-ext.cc:20: In file included from /Users/jiezhiyong/.node-gyp/8.3.0/include/node/node.h:63: /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:207:5: error: assigning to 'v8::Object volatile' from incompatible type 'v8::Value ' TYPE_CHECK(T, S); ^~~~~~~~~~~~~~~~ /Users/jiezhiyong/.node-gyp/8.3.0/include/node/v8.h:161:37: note: expanded from macro 'TYPE_CHECK' (static_cast<T volatile>(0)) = static_cast<S>(0);
^ ~~~~~~~~~~~~~~~~~~ ../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Localv8::Object::Localv8::Value' requested here return NanEscapeScope(handle->Get(NanNew(key)).Asv8::Object()); ^ ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))

                         ^

20 warnings and 16 errors generated. make: *** [Release/obj.target/fs-ext/fs-ext.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:258:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 16.6.0 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /usr/local/lib/node_modules/sinopia/node_modules/fs-ext gyp ERR! node -v v8.3.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/sinopia/node_modules/crypt3): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/sinopia/node_modules/fs-ext): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp configure build npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

jiezhiyong avatar Aug 15 '17 10:08 jiezhiyong

rlidwka/sinopia is no longer mantained. Either use fl4re/sinopia for full sinopia compatibility or verdaccio/verdaccio

dgaya avatar Aug 21 '17 09:08 dgaya