atom / node-nslog

Access to NSLog from inside node!
MIT License
31 stars 17 forks source link

Doesn't rebuild module mismatch on v0.21.0 #4

Closed reggi closed 9 years ago

reggi commented 9 years ago

I'm getting this error on the newest version of AtomShell v0.21.0

A JavaScript error occured in the browser process

Uncaught Exception:
Error: Module version mismatch. Expected 41, got 17.
    at Error (native)
    at Object.module.(anonymous function) [as .node] (/Users/thomas/Desktop/wallpaper/wallpaper-app/build/darwin/atom-shell/Holstee.app/Contents/Resources/atom/common/lib/asar.js:422:20)
    at Module.load (module.js:370:32)
    at Function.Module._load (module.js:325:12)
    at Module.require (module.js:380:17)
    at require (module.js:399:17)
    at Object.<anonymous> (/Users/thomas/Desktop/wallpaper/wallpaper-app/build/darwin/atom-shell/Holstee.app/Contents/Resources/app/node_modules/nslog/lib/nslog.js:5:11)
    at Object.<anonymous> (/Users/thomas/Desktop/wallpaper/wallpaper-app/build/darwin/atom-shell/Holstee.app/Contents/Resources/app/node_modules/nslog/lib/nslog.js:15:4)
    at Module._compile (module.js:475:26)
    at Object.Module._extensions..js (module.js:493:10)
    at Module.load (module.js:370:32)
    at Function.Module._load (module.js:325:12)
    at Module.require (module.js:380:17)
    at require (module.js:399:17)
    at Object.<anonymous> (/Users/thomas/Desktop/wallpaper/wallpaper-app/build/darwin/atom-shell/Holstee.app/Contents/Resources/app/index.js:19:13)
    at Module._compile (module.js:475:26)

Rebuild

Rebuilding modules ✗
npm info it worked if it ends with ok
npm info using npm@2.3.0
npm info using node@v0.10.35
npm info readInstalled object
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/auto-launch
npm info preinstall auto-launch@0.1.14
npm info linkStuff auto-launch@0.1.14
npm info install auto-launch@0.1.14
npm info postinstall auto-launch@0.1.14
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/auto-launch/node_modules/applescript
npm info preinstall applescript@0.2.1
npm info linkStuff applescript@0.2.1
npm info install applescript@0.2.1
npm info postinstall applescript@0.2.1
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/auto-launch/node_modules/winreg
npm info preinstall winreg@0.0.12
npm info linkStuff winreg@0.0.12
npm info install winreg@0.0.12
npm info postinstall winreg@0.0.12
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/bluebird
npm info preinstall bluebird@2.9.3
npm info linkStuff bluebird@2.9.3
npm info install bluebird@2.9.3
npm info postinstall bluebird@2.9.3
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/debug
npm info preinstall debug@2.1.1
npm info linkStuff debug@2.1.1
npm info install debug@2.1.1
npm info postinstall debug@2.1.1
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/debug/node_modules/ms
npm info preinstall ms@0.6.2
npm info linkStuff ms@0.6.2
npm info install ms@0.6.2
npm info postinstall ms@0.6.2
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/node-notifier
npm info preinstall node-notifier@4.1.0
npm info linkStuff node-notifier@4.1.0
npm info install node-notifier@4.1.0
npm info postinstall node-notifier@4.1.0
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/node-notifier/node_modules/clone
npm info preinstall clone@0.1.19
npm info linkStuff clone@0.1.19
npm info install clone@0.1.19
npm info postinstall clone@0.1.19
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/node-notifier/node_modules/growly
npm info preinstall growly@1.2.0
npm info linkStuff growly@1.2.0
npm info install growly@1.2.0
npm info postinstall growly@1.2.0
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/node-notifier/node_modules/semver
npm info preinstall semver@4.2.0
npm info linkStuff semver@4.2.0
npm info install semver@4.2.0
npm info postinstall semver@4.2.0
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/node-notifier/node_modules/shellwords
npm info preinstall shellwords@0.1.0
npm info linkStuff shellwords@0.1.0
npm info install shellwords@0.1.0
npm info postinstall shellwords@0.1.0
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/node-notifier/node_modules/which
npm info preinstall which@1.0.8
npm info linkStuff which@1.0.8
npm info install which@1.0.8
npm info postinstall which@1.0.8
npm info build /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/nslog
npm info preinstall nslog@1.0.1
npm info linkStuff nslog@1.0.1
npm info install nslog@1.0.1
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.2
gyp info using node@0.10.32 | darwin | x64
gyp info spawn python
gyp info spawn args [ '/Users/thomas/.nvm/v0.10.32/lib/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/nslog/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/thomas/.nvm/v0.10.32/lib/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/thomas/.atom/.node-gyp/.node-gyp/0.21.0/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/thomas/.atom/.node-gyp/.node-gyp/0.21.0',
gyp info spawn args   '-Dmodule_root_dir=/Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/nslog',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
In file included from ../src/main.cc:3:
../node_modules/nan/nan.h:623:19: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/thomas/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:3:
../node_modules/nan/nan.h:622:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../node_modules/nan/nan.h:617:36: note: previous definition is here
  NAN_INLINE v8::Local<v8::String> NanNew(
                                   ^
../node_modules/nan/nan.h:1993:12: error: no member named 'IsExternalAscii' in 'v8::String'; did you mean 'IsExternal'?
  if (str->IsExternalAscii()) {
           ^~~~~~~~~~~~~~~
           IsExternal
/Users/thomas/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1900:8: note: 'IsExternal' declared here
  bool IsExternal() const;
       ^
In file included from ../src/main.cc:3:
../node_modules/nan/nan.h:1994:23: error: no type named 'ExternalAsciiStringResource' in 'v8::String'; did you mean 'ExternalStringResource'?
    const v8::String::ExternalAsciiStringResource* ext;
          ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      ExternalStringResource
/Users/thomas/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:1936:19: note: 'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../src/main.cc:3:
../node_modules/nan/nan.h:1995:16: error: no member named 'GetExternalAsciiStringResource' in 'v8::String'; did you mean 'GetExternalOneByteStringResource'?
    ext = str->GetExternalAsciiStringResource();
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
               GetExternalOneByteStringResource
/Users/thomas/.atom/.node-gyp/.node-gyp/0.21.0/deps/v8/include/v8.h:2003:40: note: 'GetExternalOneByteStringResource' declared here
  const ExternalOneByteStringResource* GetExternalOneByteStringResource() const;
                                       ^
In file included from ../src/main.cc:3:
../node_modules/nan/nan.h:1995:9: error: assigning to 'const v8::String::ExternalStringResource *' from incompatible type 'const v8::String::ExternalOneByteStringResource *'
    ext = str->GetExternalAsciiStringResource();
        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1996:11: error: assigning to 'const char *' from incompatible type 'const uint16_t *' (aka 'const unsigned short *')
    *data = ext->data();
          ^ ~~~~~~~~~~~
7 errors generated.
make: *** [Release/obj.target/nslog/src/main.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/thomas/.nvm/v0.10.32/lib/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/Users/thomas/.nvm/v0.10.32/lib/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/node_modules/nslog
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 

npm info nslog@1.0.1 Failed to exec install script
npm ERR! Darwin 14.0.0
npm ERR! argv "/Users/thomas/.nvm/v0.10.32/lib/node_modules/atom-package-manager/bin/node" "/Users/thomas/.nvm/v0.10.32/lib/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "rebuild" "--target=0.21.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.3.0
npm ERR! code ELIFECYCLE
npm ERR! nslog@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nslog@1.0.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the nslog 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 their info via:
npm ERR!     npm owner ls nslog
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/thomas/Desktop/wallpaper/wallpaper-app/atom_modules/npm-debug.log
reggi commented 9 years ago

filed issues for apm https://github.com/atom/apm/issues/281 for atom-shell https://github.com/atom/atom-shell/issues/1070 which can both be closed