Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
~/gitRepos/gaia[js_tests*]$ make node_modules
# Running make without using a dependency ensures that we can run
# "make node_modules" with a custom NODE_MODULES_GIT_URL variable, and then
# run another target without specifying the variable
make modules.tar
/usr/bin/curl -OL https://github.com/mozilla-b2g/gaia-node-modules/tarball/31071870f8037cd87bba3fa2b7a0614666457e64 &&\
mv 31071870f8037cd87bba3fa2b7a0614666457e64 "modules.tar"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 178 0 178 0 0 567 0 --:--:-- --:--:-- --:--:-- 1047
100 16.6M 100 16.6M 0 0 1722k 0 0:00:09 0:00:09 --:--:-- 2024k
tar --strip-components 1 -x -m -f modules.tar "mozilla-b2g-gaia-node-modules-*/node_modules"
tar: Failed to set default locale
npm install && npm rebuild
npm WARN package.json dateformat@1.0.6-1.2.3 No repository field.
npm WARN package.json marionette-client@1.2.0 No repository field.
npm WARN package.json marionette-content-script@0.0.4 No repository field.
npm WARN package.json marionette-device-host@0.1.0 No repository field.
npm WARN package.json marionette-file-manager@0.0.2 No repository field.
npm WARN package.json marionette-profile-builder@0.0.3 No repository field.
npm WARN package.json mocha-json-proxy@0.0.7 No repository field.
npm WARN package.json mocha-parallel@0.1.0 No repository field.
npm WARN unmet dependency /Users/bsilverberg/gitRepos/gaia/node_modules/marionette-plugin-forms requires marionette-client@'~1.1.7' but will load
npm WARN unmet dependency /Users/bsilverberg/gitRepos/gaia/node_modules/marionette-client,
npm WARN unmet dependency which is version 1.2.0
> sockit-to-me@0.2.2 install /Users/bsilverberg/gitRepos/gaia/node_modules/marionette-client/node_modules/sockit-to-me
> ./tools/copy.js || node-gyp configure build
[sockit-to-me] platform not linux
CXX(target) Release/obj.target/sockit/src/addon.o
dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib
Referenced from: /usr/local/Cellar/gcc/4.8.3/libexec/gcc/x86_64-apple-darwin12.5.0/4.8.3/cc1plus
Reason: Incompatible library version: cc1plus requires version 13.0.0 or later, but libgmp.10.dylib provides version 11.0.0
c++: internal compiler error: Trace/BPT trap: 5 (program cc1plus)
make[1]: *** [Release/obj.target/sockit/src/addon.o] Abort trap: 6
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:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 12.5.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/bsilverberg/gitRepos/gaia/node_modules/marionette-client/node_modules/sockit-to-me
gyp ERR! node -v v0.10.22
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! sockit-to-me@0.2.2 install: `./tools/copy.js || node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sockit-to-me@0.2.2 install script.
npm ERR! This is most likely a problem with the sockit-to-me package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./tools/copy.js || node-gyp configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls sockit-to-me
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "rebuild"
npm ERR! cwd /Users/bsilverberg/gitRepos/gaia
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.15
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/bsilverberg/gitRepos/gaia/npm-debug.log
npm ERR! not ok code 0
make: *** [node_modules] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.