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

Installation fails on Node.js v6 #2

Open
mathiasbynens opened this issue Jun 12, 2016 · 1 comment
Open

Installation fails on Node.js v6 #2

mathiasbynens opened this issue Jun 12, 2016 · 1 comment

Comments

@mathiasbynens
Copy link

fatal error: too many errors emitted, stopping now:

$ node -v
v6.2.1

$ npm -v
3.9.3

$ npm i gif2webp -g
npm http request GET https://registry.npmjs.org/gif2webp
npm http 200 https://registry.npmjs.org/gif2webp
npm http fetch GET https://registry.npmjs.org/gif2webp/-/gif2webp-0.1.5.tgz
npm http fetch 200 https://registry.npmjs.org/gif2webp/-/gif2webp-0.1.5.tgz

> [email protected] install /Users/mathias/.nvm/versions/node/v6.2.1/lib/node_modules/gif2webp
> 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/gif2webp/src/gif2webp.o
../src/gif2webp.cpp:55:30: error: unknown type name 'Arguments'; did you
      mean 'v8::internal::Arguments'?
Handle<Value> convert (const Arguments& args) {
                             ^~~~~~~~~
                             v8::internal::Arguments
/Users/mathias/.node-gyp/6.2.1/include/node/v8.h:145:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/gif2webp.cpp:56:17: error: calling a protected constructor of class
      'v8::HandleScope'
    HandleScope scope;
                ^
/Users/mathias/.node-gyp/6.2.1/include/node/v8.h:904:13: note: declared
      protected here
  V8_INLINE HandleScope() {}
            ^
../src/gif2webp.cpp:58:13: error: member access into incomplete type 'const
      v8::internal::Arguments'
    if (args.Length() < 2) {
            ^
/Users/mathias/.node-gyp/6.2.1/include/node/v8.h:145:7: note: forward
      declaration of 'v8::internal::Arguments'
class Arguments;
      ^
../src/gif2webp.cpp:59:62: error: no member named 'New' in 'v8::String'
        return ThrowException (Exception::TypeError (String::New ("W...
                                                     ~~~~~~~~^
../src/gif2webp.cpp:62:15: error: type 'const v8::internal::Arguments' does
      not provide a subscript operator
    if (!args [0]->IsObject()) {
         ~~~~ ^~
../src/gif2webp.cpp:63:62: error: no member named 'New' in 'v8::String'
        return ThrowException (Exception::TypeError (String::New ("F...
                                                     ~~~~~~~~^
../src/gif2webp.cpp:66:15: error: type 'const v8::internal::Arguments' does
      not provide a subscript operator
    if (!args [1]->IsFunction()) {
         ~~~~ ^~
../src/gif2webp.cpp:67:62: error: no member named 'New' in 'v8::String'
        return ThrowException (Exception::TypeError (String::New ("S...
                                                     ~~~~~~~~^
../src/gif2webp.cpp:70:34: error: type 'const v8::internal::Arguments' does
      not provide a subscript operator
    Local<Object> options = args [0]->ToObject();
                            ~~~~ ^~
../src/gif2webp.cpp:72:71: error: no member named 'NewSymbol' in
      'v8::String'
  ...buffer = Local<Object>::Cast (options->Get (String::NewSymbol ("sour...
                                                 ~~~~~~~~^
../src/gif2webp.cpp:74:62: error: no member named 'New' in 'v8::String'
        return ThrowException (Exception::TypeError (String::New ("F...
                                                     ~~~~~~~~^
../src/gif2webp.cpp:79:32: error: no member named 'NewSymbol' in
      'v8::String'
    if (!options->Get (String::NewSymbol ("lossy"))->IsUndefined()) {
                       ~~~~~~~~^
../src/gif2webp.cpp:80:54: error: no member named 'NewSymbol' in
      'v8::String'
        Local<Boolean> value = options->Get (String::NewSymbol ("los...
                                             ~~~~~~~~^
../src/gif2webp.cpp:87:32: error: no member named 'NewSymbol' in
      'v8::String'
    if (!options->Get (String::NewSymbol ("mixed"))->IsUndefined()) {
                       ~~~~~~~~^
../src/gif2webp.cpp:88:54: error: no member named 'NewSymbol' in
      'v8::String'
        Local<Boolean> value = options->Get (String::NewSymbol ("mix...
                                             ~~~~~~~~^
../src/gif2webp.cpp:94:32: error: no member named 'NewSymbol' in
      'v8::String'
    if (!options->Get (String::NewSymbol ("quality"))->IsUndefined()) {
                       ~~~~~~~~^
../src/gif2webp.cpp:95:53: error: no member named 'NewSymbol' in
      'v8::String'
        Local<Number> value = options->Get (String::NewSymbol ("qual...
                                            ~~~~~~~~^
../src/gif2webp.cpp:102:32: error: no member named 'NewSymbol' in
      'v8::String'
    if (!options->Get (String::NewSymbol ("method"))->IsUndefined()) {
                       ~~~~~~~~^
../src/gif2webp.cpp:103:53: error: no member named 'NewSymbol' in
      'v8::String'
        Local<Number> value = options->Get (String::NewSymbol ("meth...
                                            ~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/gif2webp/src/gif2webp.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/mathias/.nvm/versions/node/v6.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 15.5.0
gyp ERR! command "/Users/mathias/.nvm/versions/node/v6.2.1/bin/node" "/Users/mathias/.nvm/versions/node/v6.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mathias/.nvm/versions/node/v6.2.1/lib/node_modules/gif2webp
gyp ERR! node -v v6.2.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/mathias/.nvm/versions/node/v6.2.1/bin/node" "/Users/mathias/.nvm/versions/node/v6.2.1/bin/npm" "i" "gif2webp" "-g"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the gif2webp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs gif2webp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls gif2webp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     ~/tmp/npm-debug.log
@ghost
Copy link

ghost commented May 9, 2017

I have the same error.

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

1 participant