Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTraceProviderBindings Error on start up #321

Closed
SkamDart opened this issue Oct 9, 2015 · 17 comments
Closed

DTraceProviderBindings Error on start up #321

SkamDart opened this issue Oct 9, 2015 · 17 comments

Comments

@SkamDart
Copy link

SkamDart commented Oct 9, 2015

When I start up Sinopia from terminal as shown below:

sinopia
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
 warn  --- config file  - /Users/cdart/.config/sinopia/config.yaml
 warn  --- http address - http://localhost:4873/

I have seen other modules having these same DTrace issues and I have tried

npm install dtrace-provider
|
> dtrace-provider@0.6.0 install /Users/cdart/dev/repos/foo_bar/node_modules/dtrace-provider
> node scripts/install.js

dtrace-provider@0.6.0 node_modules/dtrace-provider
└── nan@2.1.0

Everything works as it should, or I haven't found any issues with the module yet, it's just a little unsettling to see those errors. If there's something I can do, I'd like to take care of it now as opposed to later.

Here's what I'm working with on OSX

node -v && npm -v && sw_vers -productVersion && sinopia --version
v4.1.0
2.14.3
10.10.5
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
1.4.0

Might be similar to trentm/node-bunyan#216

Thanks in advance for any suggestions, advice, or solutions.

@morgs32
Copy link

morgs32 commented Nov 6, 2015

Also having this issue. @cdart2 did you ever resolve it?

@the1mills
Copy link

same here, pls help

@heziqiang
Copy link

npm install hexo --no-optional will solve your problem
// 'hexo' here can be replaced by 'sinopia' etc.

@r-powar
Copy link

r-powar commented Dec 30, 2015

I am also seeing the same issue, but did an npm install on bunyan and this fixed the issue

bunyan@1.5.1 node_modules/bunyan
├── safe-json-stringify@1.0.3
├── mv@2.1.1 (ncp@2.0.0, mkdirp@0.5.1, rimraf@2.4.5)
└── dtrace-provider@0.6.0 (nan@2.1.0)

@r-powar
Copy link

r-powar commented Dec 30, 2015

Referenced from here trentm/node-bunyan#258

@FredLoney
Copy link

This warning is also issued by Express used in conjunction with the express-bunyan-logger. The work-around is adapted from heziqiang99 above:

npm install --no-optional express-bunyan-logger

@kh411d
Copy link

kh411d commented May 11, 2016

HI @SkamDart Is this already a fix, I'm still encounter dtrace module not found

Khalids-MacBook-Air:Sites khalidadisendjaja$ sinopia
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
 warn  --- config file  - /Users/khalidadisendjaja/.config/sinopia/config.yaml
fs.js:584
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                                                  ^

Error: ENOENT: no such file or directory, open '/Users/khalidadisendjaja/.local/share/sinopia/storage/.sinopia-db.json'
    at Error (native)
    at Object.fs.openSync (fs.js:584:18)
    at Object.fs.writeFileSync (fs.js:1224:33)
    at LocalData.sync (/usr/local/lib/node_modules/sinopia/lib/local-data.js:42:6)
    at Config (/usr/local/lib/node_modules/sinopia/lib/config.js:49:22)
    at module.exports (/usr/local/lib/node_modules/sinopia/lib/index.js:14:17)
    at afterConfigLoad (/usr/local/lib/node_modules/sinopia/lib/cli.js:100:13)
    at Object.<anonymous> (/usr/local/lib/node_modules/sinopia/lib/cli.js:63:1)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
Khalids-MacBook-Air:Sites khalidadisendjaja$ node -v
v5.0.0
Khalids-MacBook-Air:Sites khalidadisendjaja$ npm -v
3.7.2
Khalids-MacBook-Air:Sites khalidadisendjaja$ npm -g list --depth=0
/usr/local/lib
├── acs@1.0.25
├── alloy@1.7.3
├── angular@1.4.3
├── appcelerator@4.2.2
├── body-parser@1.13.2
├── bower@1.4.1
├── browserify@12.0.1
├── bunyan@1.8.1
├── connect-flash@0.1.1
├── connect-mongo@0.8.2
├── consolidate@0.13.1
├── cordova@6.1.1
├── crypto@0.0.3
├── deployd@0.8.4
├── dtrace-provider@0.6.0
├── electron-prebuilt@0.36.2
├── ember-cli@1.13.8
├── esvalidate@0.1.3
├── express@4.13.1
├── express-validator@2.13.0
├── flux@2.1.1
├── generator-angular@0.12.1
├── generator-karma@1.0.0
├── grunt-cli@0.1.13
├── gulp@3.9.1
├── ionic@1.7.6
├── ios-sim@5.0.2
├── jade@1.11.0
├── jslint@0.9.3
├── jsonwebtoken@5.0.4
├── lodash@3.10.0
├── mean-logger@0.0.1
├── mongoose@4.1.0
├── morgan@1.6.1
├── n@2.0.2
├── nativescript@1.6.2
├── nodemon@1.4.0
├── npm@3.7.2
├── npmlog@2.0.3
├── passport@0.2.2
├── passport-facebook@2.0.0
├── passport-local@1.0.0
├── passport-twitter@1.0.3
├── phantomjs2@2.0.0
├── phonegap@5.3.6
├── react-native-cli@0.1.7
├── sinopia@1.4.0
├── socket.io@1.3.6
├── swig@1.4.2
├── titanium@4.1.3
├── todomvc-flux@0.0.3
├── view-helpers@0.1.5
├── webpack@1.12.10
└── yo@1.4.7

@SkamDart
Copy link
Author

@FredLoney 's answer is right. gonna close this

@Swivelgames
Copy link

Swivelgames commented Aug 16, 2016

@SkamDart: Unfortunately, @FredLoney's answer doesn't solve the case 😞

Running sudo npm install --no-optional -g sinopia doesn't solve the problem on my end:

image

image

Full install, build, and run output:

C02QF49WG8WP:nui joseph$ sudo npm install --no-optional -g sinopia
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated tough-cookie@1.2.0: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

> crypt3@0.1.8 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:
../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: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/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::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::MaybeLocal<v8::Object>' to function return type 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE 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);
           ~~~~~~~~~~~~~~^
../crypt3.cc:29:30: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
                return NanThrowError(node::ErrnoException(errno, "crypt"));
                                           ^
/Users/joseph/.node-gyp/4.4.7/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
In file included from ../crypt3.cc:3:
In file included from /Users/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Primitive>::Local<v8::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/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Boolean>::Local<v8::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/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Function>::Local<v8::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/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
1 warning and 9 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: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:200:12)
gyp ERR! System Darwin 15.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 v4.4.7
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

> fs-ext@0.4.5 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:
../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: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/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::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::MaybeLocal<v8::Object>' to function return type 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE 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);
           ~~~~~~~~~~~~~~^
../fs-ext.cc:108:15: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    argv[0] = ErrnoException(store_data->error);
              ^
/Users/joseph/.node-gyp/4.4.7/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:156:5: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
    FatalException(try_catch);
    ^
/Users/joseph/.node-gyp/4.4.7/include/node/node.h:283: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/joseph/.node-gyp/4.4.7/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::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/joseph/.node-gyp/4.4.7/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:380:44: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    if (result == -1) return NanThrowError(ErrnoException(errno));
                                           ^
/Users/joseph/.node-gyp/4.4.7/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:439:40: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    if (ret != 0) return NanThrowError(ErrnoException(errno, "utime", "", *path));
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:476:40: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    if (ret != 0) return NanThrowError(ErrnoException(errno, "statvfs", "", *path));
                                       ^
/Users/joseph/.node-gyp/4.4.7/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
In file included from ../fs-ext.cc:20:
In file included from /Users/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Primitive>::Local<v8::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/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Boolean>::Local<v8::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/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Function>::Local<v8::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/joseph/.node-gyp/4.4.7/include/node/node.h:42:
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/joseph/.node-gyp/4.4.7/include/node/v8.h:180: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::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
7 warnings and 9 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: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:200:12)
gyp ERR! System Darwin 15.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 v4.4.7
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN optional dep failed, continuing crypt3@0.1.8

> dtrace-provider@0.4.0 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
---------------
npm WARN optional dep failed, continuing fs-ext@0.4.5
/usr/local/bin/sinopia -> /usr/local/lib/node_modules/sinopia/bin/sinopia
sinopia@1.4.0 /usr/local/lib/node_modules/sinopia
├── sinopia-htpasswd@0.4.5
├── async@0.9.2
├── es6-shim@0.21.1
├── http-errors@1.3.1 (statuses@1.2.1, inherits@2.0.1)
├── commander@2.8.1 (graceful-readlink@1.0.1)
├── cookies@0.5.0 (keygrip@1.0.1)
├── minimatch@1.0.0 (sigmund@1.0.1, lru-cache@2.6.4)
├── readable-stream@1.1.13 (string_decoder@0.10.31, isarray@0.0.1, core-util-is@1.0.1, inherits@2.0.1)
├── jju@1.2.0
├── mkdirp@0.5.1 (minimist@0.0.8)
├── compression@1.4.4 (vary@1.0.0, on-headers@1.0.0, bytes@1.0.0, compressible@2.0.2, debug@2.2.0, accepts@1.2.7)
├── body-parser@1.12.4 (content-type@1.0.1, bytes@1.0.0, depd@1.0.1, qs@2.4.2, raw-body@2.0.2, on-finished@2.2.1, debug@2.2.0, iconv-lite@0.4.8, type-is@1.6.2)
├── JSONStream@1.0.3 (through@2.3.7, jsonparse@1.0.0)
├── express-json5@0.1.0 (raw-body@1.3.4)
├── express@5.0.0-alpha.1 (cookie@0.1.2, merge-descriptors@0.0.2, utils-merge@1.0.0, media-typer@0.3.0, fresh@0.2.4, finalhandler@0.3.2, serve-static@1.7.2, range-parser@1.0.2, content-disposition@0.5.0, escape-html@1.0.1, cookie-signature@1.0.5, vary@1.0.0, parseurl@1.3.0, path-to-regexp@0.1.3, methods@1.1.0, depd@1.0.1, qs@2.3.2, on-finished@2.1.1, send@0.10.1, debug@2.1.3, proxy-addr@1.0.8, etag@1.5.1, accepts@1.1.4, type-is@1.5.7)
├── semver@4.3.5
├── lunr@0.5.9
├── request@2.56.0 (aws-sign2@0.5.0, forever-agent@0.6.1, caseless@0.10.0, oauth-sign@0.8.0, tunnel-agent@0.4.0, stringstream@0.0.4, isstream@0.1.2, json-stringify-safe@5.0.1, node-uuid@1.4.3, qs@3.1.0, combined-stream@1.0.3, mime-types@2.0.12, tough-cookie@1.2.0, http-signature@0.11.0, form-data@0.2.0, bl@0.9.4, hawk@2.3.1, har-validator@1.7.1)
├── highlight.js@8.6.0
├── handlebars@2.0.0 (optimist@0.3.7, uglify-js@2.3.6)
├── js-yaml@3.3.1 (esprima@2.2.0, argparse@1.0.2)
├── render-readme@1.3.0 (sanitize-html@1.6.1, markdown-it@4.2.1)
└── bunyan@1.3.5 (safe-json-stringify@1.0.3, mv@2.0.3, dtrace-provider@0.4.0)
C02QF49WG8WP:nui joseph$ sinopia
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
 warn  --- config file  - /Users/joseph/.config/sinopia/config.yaml
 warn  --- http address - http://localhost:4873/

@Swivelgames
Copy link

{ Error: Cannot find module './build/Release/DTraceProviderBindings'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/sinopia/node_modules/bunyan/node_modules/dtrace-provider/dtrace-provider.js:17:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module './build/default/DTraceProviderBindings'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/sinopia/node_modules/bunyan/node_modules/dtrace-provider/dtrace-provider.js:17:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3) code: 'MODULE_NOT_FOUND' }
{ Error: Cannot find module './build/Debug/DTraceProviderBindings'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/sinopia/node_modules/bunyan/node_modules/dtrace-provider/dtrace-provider.js:17:23)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3) code: 'MODULE_NOT_FOUND' }

@SkamDart
Copy link
Author

@Swivelgames Help me help you. What OS, npm, and node?
Looks like @rlidwka isn't maintaining this repo anymore but verdaccio's fork is still getting updated.
Might try that?

@haoHu
Copy link

haoHu commented Jan 13, 2017

I have the same problem.

npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated node-uuid@1.4.3: use uuid module instead
npm WARN deprecated tough-cookie@1.2.0: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

> crypt3@0.1.8 install /Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/sinopia/node_modules/crypt3
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  CXX(target) Release/obj.target/crypt3/crypt3.o
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: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/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:34:40: note: candidate function not viable: no known conversion from
      'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:46:40: note: candidate function not viable: 2nd argument
      ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:31:40: note: candidate function not viable: requires 2 arguments,
      but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:39:40: note: candidate function not viable: requires 5 arguments,
      but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::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::MaybeLocal<v8::Object>' to
      function return type 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not
      viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not
      viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against
      'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against
      'v8::MaybeLocal<v8::Object>'
  V8_INLINE 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);
           ~~~~~~~~~~~~~~^
../crypt3.cc:29:30: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
                return NanThrowError(node::ErrnoException(errno, "crypt"));
                                           ^
/Users/huhao/.node-gyp/4.5.0/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
In file included from ../crypt3.cc:3:
In file included from /Users/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Primitive>::Local<v8::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/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Boolean>::Local<v8::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/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Function>::Local<v8::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/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
1 warning and 9 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 (/Users/huhao/.nvm/versions/node/v4.5.0/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:200:12)
gyp ERR! System Darwin 16.0.0
gyp ERR! command "/Users/huhao/.nvm/versions/node/v4.5.0/bin/node" "/Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/sinopia/node_modules/crypt3
gyp ERR! node -v v4.5.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

> fs-ext@0.4.5 install /Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/sinopia/node_modules/fs-ext
> node-gyp configure build

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  CXX(target) Release/obj.target/fs-ext/fs-ext.o
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: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/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:34:40: note: candidate function not viable: no known conversion from
      'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:46:40: note: candidate function not viable: 2nd argument
      ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:31:40: note: candidate function not viable: requires 2 arguments,
      but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node_buffer.h:39:40: note: candidate function not viable: requires 5 arguments,
      but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::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::MaybeLocal<v8::Object>' to
      function return type 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not
      viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not
      viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against
      'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against
      'v8::MaybeLocal<v8::Object>'
  V8_INLINE 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);
           ~~~~~~~~~~~~~~^
../fs-ext.cc:108:15: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    argv[0] = ErrnoException(store_data->error);
              ^
/Users/huhao/.node-gyp/4.5.0/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:156:5: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
    FatalException(try_catch);
    ^
/Users/huhao/.node-gyp/4.5.0/include/node/node.h:284: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/huhao/.node-gyp/4.5.0/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::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/huhao/.node-gyp/4.5.0/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:380:44: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    if (result == -1) return NanThrowError(ErrnoException(errno));
                                           ^
/Users/huhao/.node-gyp/4.5.0/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:439:40: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    if (ret != 0) return NanThrowError(ErrnoException(errno, "utime", "", *path));
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
../fs-ext.cc:476:40: warning: 'ErrnoException' is deprecated: Use ErrnoException(isolate, ...) [-Wdeprecated-declarations]
    if (ret != 0) return NanThrowError(ErrnoException(errno, "statvfs", "", *path));
                                       ^
/Users/huhao/.node-gyp/4.5.0/include/node/node.h:100:45: note: 'ErrnoException' has been explicitly marked deprecated here
                inline v8::Local<v8::Value> ErrnoException(
                                            ^
In file included from ../fs-ext.cc:20:
In file included from /Users/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Primitive>::Local<v8::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/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Boolean>::Local<v8::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/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Function>::Local<v8::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/huhao/.node-gyp/4.5.0/include/node/node.h:42:
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type
      'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/huhao/.node-gyp/4.5.0/include/node/v8.h:180: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::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
7 warnings and 9 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 (/Users/huhao/.nvm/versions/node/v4.5.0/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:200:12)
gyp ERR! System Darwin 16.0.0
gyp ERR! command "/Users/huhao/.nvm/versions/node/v4.5.0/bin/node" "/Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/sinopia/node_modules/fs-ext
gyp ERR! node -v v4.5.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN optional dep failed, continuing crypt3@0.1.8

> dtrace-provider@0.4.0 install /Users/huhao/.nvm/versions/node/v4.5.0/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
---------------
npm WARN optional dep failed, continuing fs-ext@0.4.5
/Users/huhao/.nvm/versions/node/v4.5.0/bin/sinopia -> /Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/sinopia/bin/sinopia
sinopia@1.4.0 /Users/huhao/.nvm/versions/node/v4.5.0/lib/node_modules/sinopia
├── sinopia-htpasswd@0.4.5
├── async@0.9.2
├── es6-shim@0.21.1
├── commander@2.8.1 (graceful-readlink@1.0.1)
├── http-errors@1.3.1 (statuses@1.2.1, inherits@2.0.1)
├── cookies@0.5.0 (keygrip@1.0.1)
├── minimatch@1.0.0 (sigmund@1.0.1, lru-cache@2.6.4)
├── readable-stream@1.1.13 (string_decoder@0.10.31, isarray@0.0.1, core-util-is@1.0.1, inherits@2.0.1)
├── jju@1.2.0
├── mkdirp@0.5.1 (minimist@0.0.8)
├── compression@1.4.4 (on-headers@1.0.0, vary@1.0.0, bytes@1.0.0, compressible@2.0.2, debug@2.2.0, accepts@1.2.7)
├── JSONStream@1.0.3 (through@2.3.7, jsonparse@1.0.0)
├── body-parser@1.12.4 (content-type@1.0.1, bytes@1.0.0, depd@1.0.1, qs@2.4.2, raw-body@2.0.2, on-finished@2.2.1, debug@2.2.0, iconv-lite@0.4.8, type-is@1.6.2)
├── express-json5@0.1.0 (raw-body@1.3.4)
├── express@5.0.0-alpha.1 (cookie@0.1.2, utils-merge@1.0.0, merge-descriptors@0.0.2, media-typer@0.3.0, fresh@0.2.4, finalhandler@0.3.2, range-parser@1.0.2, serve-static@1.7.2, content-disposition@0.5.0, escape-html@1.0.1, cookie-signature@1.0.5, vary@1.0.0, parseurl@1.3.0, path-to-regexp@0.1.3, methods@1.1.0, depd@1.0.1, qs@2.3.2, on-finished@2.1.1, debug@2.1.3, send@0.10.1, proxy-addr@1.0.8, etag@1.5.1, accepts@1.1.4, type-is@1.5.7)
├── semver@4.3.5
├── lunr@0.5.9
├── request@2.56.0 (aws-sign2@0.5.0, forever-agent@0.6.1, caseless@0.10.0, tunnel-agent@0.4.0, oauth-sign@0.8.0, stringstream@0.0.4, isstream@0.1.2, json-stringify-safe@5.0.1, node-uuid@1.4.3, qs@3.1.0, combined-stream@1.0.3, mime-types@2.0.12, tough-cookie@1.2.0, http-signature@0.11.0, form-data@0.2.0, bl@0.9.4, hawk@2.3.1, har-validator@1.7.1)
├── highlight.js@8.6.0
├── handlebars@2.0.0 (optimist@0.3.7, uglify-js@2.3.6)
├── js-yaml@3.3.1 (esprima@2.2.0, argparse@1.0.2)
├── render-readme@1.3.0 (sanitize-html@1.6.1, markdown-it@4.2.1)
└── bunyan@1.3.5 (safe-json-stringify@1.0.3, mv@2.0.3, dtrace-provider@0.4.0)

 λ  ~   sinopia                                                                                               14:56:40
{ [Error: Cannot find module './build/Release/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
 warn  --- config file  - /Users/huhao/.config/sinopia/config.yaml
 warn  --- http address - http://localhost:4873/
 http  <-- 200, user: undefined, req: 'GET /', bytes: 0/1407
 http  <-- 200, user: undefined, req: 'GET /-/static/main.js', bytes: 0/10834
 http  <-- 200, user: undefined, req: 'GET /-/static/main.css', bytes: 0/26196
 http  <-- 200, user: undefined, req: 'GET /-/static/jquery.min.js', bytes: 0/33417
 http  <-- 200, user: undefined, req: 'GET /-/logo', bytes: 0/3447
 http  <-- 200, user: undefined, req: 'GET /-/static/fontello.woff?10872183', bytes: 0/2844
 http  <-- 200, user: undefined, req: 'GET /-/static/favicon.png', bytes: 0/315

@itinance
Copy link

Any news on this?

@juanpicado
Copy link

@itinance This was fixed on verdaccio (sinopia fork) already https://github.com/verdaccio/verdaccio . I really doubt you will get any answer in this repository.

@itinance
Copy link

@juanpicado thx for fast reply! ReactNative links to this repo. I'm wondering that they link to a dead one.

@juanpicado
Copy link

@itinance well the long story is on #376 , the short is sinopia is the pioneer that is not longer maintained.

@c0debreaker
Copy link

I'm getting this error too in Mac OSX but it runs. However on Debian, I don't see the hundreds of warnings. Am I right that I shouldn't be using Sinopia anymore but instead use verdaccio?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests