Skip to content

Instantly share code, notes, and snippets.

@beeman
Created August 19, 2015 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beeman/394626bd9cbefff740c1 to your computer and use it in GitHub Desktop.
Save beeman/394626bd9cbefff740c1 to your computer and use it in GitHub Desktop.
➜ ~/workspace/scratch $ git clone https://github.com/strongloop/loopback-example-pubsub.git
Cloning into 'loopback-example-pubsub'...
remote: Counting objects: 6691, done.
remote: Total 6691 (delta 0), reused 0 (delta 0), pack-reused 6691
Receiving objects: 100% (6691/6691), 8.63 MiB | 4.41 MiB/s, done.
Resolving deltas: 100% (1174/1174), done.
Checking connectivity... done.
➜ ~/workspace/scratch $ cd loopback-example-pubsub
➜ [master] ~/workspace/scratch/loopback-example-pubsub $ npm install
npm WARN package.json strong-pubsub-angular-loopback@1.0.0 No license field.
> bufferutil@1.1.0 install /Users/beeman/workspace/scratch/loopback-example-pubsub/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/bufferutil.node
> utf-8-validate@1.1.0 install /Users/beeman/workspace/scratch/loopback-example-pubsub/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
npm WARN prefer global jshint@2.8.0 should be installed with -g
> utf-8-validate@1.1.0 install /Users/beeman/workspace/scratch/loopback-example-pubsub/node_modules/strong-pubsub-mqtt/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
> bufferutil@1.1.0 install /Users/beeman/workspace/scratch/loopback-example-pubsub/node_modules/strong-pubsub-mqtt/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/bufferutil.node
gulp-rename@1.2.2 node_modules/gulp-rename
duplex@1.0.0 node_modules/duplex
strong-pubsub-primus@0.1.0 node_modules/strong-pubsub-primus
strong-pubsub-proxy@0.1.0 node_modules/strong-pubsub-proxy
strong-pubsub@0.1.0 node_modules/strong-pubsub
debug@2.2.0 node_modules/debug
└── ms@0.7.1
serve-favicon@2.3.0 node_modules/serve-favicon
├── fresh@0.3.0
├── ms@0.7.1
├── etag@1.7.0
└── parseurl@1.3.0
compression@1.5.2 node_modules/compression
├── bytes@2.1.0
├── vary@1.0.1
├── on-headers@1.0.0
├── compressible@2.0.5 (mime-db@1.17.0)
└── accepts@1.2.12 (negotiator@0.5.3, mime-types@2.1.4)
errorhandler@1.4.2 node_modules/errorhandler
├── escape-html@1.0.2
└── accepts@1.2.12 (negotiator@0.5.3, mime-types@2.1.4)
loopback-datasource-juggler@2.38.0 node_modules/loopback-datasource-juggler
├── depd@1.0.1
├── inflection@1.7.1
├── node-uuid@1.4.3
├── qs@3.1.0
├── async@1.0.0
├── traverse@0.6.6
└── loopback-connector@2.3.0
engine.io@1.5.2 node_modules/engine.io
├── base64id@0.1.0
├── debug@1.0.3 (ms@0.6.2)
├── engine.io-parser@1.2.1 (blob@0.0.2, arraybuffer.slice@0.0.6, after@0.8.1, base64-arraybuffer@0.1.2, has-binary@0.1.5, utf8@2.0.0)
└── ws@0.7.2 (options@0.0.6, ultron@1.0.2, bufferutil@1.1.0, utf-8-validate@1.1.0)
primus@2.4.12 node_modules/primus
├── ultron@1.0.2
├── forwarded-for@0.1.1
├── eventemitter3@0.1.6
├── load@1.0.1
├── setheader@0.0.4 (debug@0.7.4)
├── access-control@0.0.8 (vary@1.0.1, millisecond@0.1.1)
├── create-server@0.0.7 (connected@0.0.2)
├── fusing@0.4.0 (emits@1.0.2, predefine@0.1.2)
└── diagnostics@0.0.4 (env-variable@0.0.3, text-hex@0.0.0, kuler@0.0.0, colornames@0.0.2, color@0.7.3)
gulp-loopback-sdk-angular@0.1.3 node_modules/gulp-loopback-sdk-angular
├── watchjs@0.0.0
├── through2@1.1.1 (xtend@4.0.0, readable-stream@1.1.13)
├── loopback-sdk-angular@1.4.1 (ejs@1.0.0)
└── gulp-util@3.0.6 (array-differ@1.0.0, array-uniq@1.0.2, lodash._reevaluate@3.0.0, lodash._reinterpolate@3.0.0, lodash._reescape@3.0.0, beeper@1.1.0, object-assign@3.0.0, replace-ext@0.0.1, minimist@1.1.3, chalk@1.1.0, vinyl@0.5.1, lodash.template@3.6.2, through2@2.0.0, multipipe@0.1.2, dateformat@1.0.11)
binary-pack@0.0.3 node_modules/binary-pack
└── binarypack@0.0.4 (buffercursor@0.0.12)
strong-pubsub-connection-mqtt@0.1.1 node_modules/strong-pubsub-connection-mqtt
├── mqtt-connection@2.1.1 (inherits@2.0.1, through2@0.6.5, reduplexer@1.1.0, mqtt-packet@3.3.0)
└── chai@2.3.0 (assertion-error@1.0.0, deep-eql@0.1.3)
gulp@3.9.0 node_modules/gulp
├── pretty-hrtime@1.0.0
├── interpret@0.6.5
├── deprecated@0.0.1
├── archy@1.0.0
├── minimist@1.1.3
├── tildify@1.1.0 (os-homedir@1.0.1)
├── semver@4.3.6
├── v8flags@2.0.10 (user-home@1.1.1)
├── chalk@1.1.0 (escape-string-regexp@1.0.3, supports-color@2.0.0, ansi-styles@2.1.0, strip-ansi@3.0.0, has-ansi@2.0.0)
├── orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5)
├── gulp-util@3.0.6 (array-differ@1.0.0, array-uniq@1.0.2, lodash._reescape@3.0.0, lodash._reinterpolate@3.0.0, lodash._reevaluate@3.0.0, beeper@1.1.0, object-assign@3.0.0, replace-ext@0.0.1, vinyl@0.5.1, lodash.template@3.6.2, through2@2.0.0, multipipe@0.1.2, dateformat@1.0.11)
├── liftoff@2.1.0 (extend@2.0.1, rechoir@0.6.2, flagged-respawn@0.3.1, resolve@1.1.6, findup-sync@0.2.1)
└── vinyl-fs@0.3.13 (graceful-fs@3.0.8, strip-bom@1.0.0, vinyl@0.4.6, defaults@1.0.2, mkdirp@0.5.1, through2@0.6.5, glob-stream@3.1.18, glob-watcher@0.0.6)
loopback-boot@2.11.0 node_modules/loopback-boot
├── commondir@0.0.1
├── toposort@0.2.10
├── async@0.9.2
├── semver@4.3.6
└── lodash@3.10.1
jshint@2.8.0 node_modules/jshint
├── strip-json-comments@1.0.4
├── exit@0.1.2
├── console-browserify@1.1.0 (date-now@0.1.4)
├── shelljs@0.3.0
├── minimatch@2.0.10 (brace-expansion@1.1.0)
├── cli@0.6.6 (glob@3.2.11)
├── htmlparser2@3.8.3 (domelementtype@1.3.0, entities@1.0.0, domhandler@2.3.0, readable-stream@1.1.13, domutils@1.5.1)
└── lodash@3.7.0
strong-pubsub-mqtt@0.1.0 node_modules/strong-pubsub-mqtt
├── lodash@3.10.1
└── mqtt@1.3.5 (inherits@2.0.1, xtend@4.0.0, minimist@1.1.3, commist@1.0.0, readable-stream@1.0.33, mqtt-connection@2.1.1, mqtt-packet@3.3.0, end-of-stream@1.1.0, help-me@0.1.0, concat-stream@1.5.0, websocket-stream@1.5.1)
browserify@11.0.1 node_modules/browserify
├── https-browserify@0.0.0
├── tty-browserify@0.0.0
├── builtins@0.0.7
├── constants-browserify@0.0.1
├── path-browserify@0.0.0
├── htmlescape@1.1.0
├── os-browserify@0.1.2
├── isarray@0.0.1
├── inherits@2.0.1
├── browser-resolve@1.9.1
├── commondir@0.0.1
├── string_decoder@0.10.31
├── process@0.11.1
├── shell-quote@0.0.1
├── punycode@1.3.2
├── domain-browser@1.1.4
├── stream-browserify@2.0.0
├── xtend@4.0.0
├── defined@1.0.0
├── querystring-es3@0.2.1
├── assert@1.3.0
├── timers-browserify@1.4.1
├── deps-sort@1.3.9
├── util@0.10.3
├── events@1.0.2
├── vm-browserify@0.0.4 (indexof@0.0.1)
├── console-browserify@1.1.0 (date-now@0.1.4)
├── subarg@1.0.0 (minimist@1.1.3)
├── parents@1.0.1 (path-platform@0.11.15)
├── has@1.0.1 (function-bind@1.0.2)
├── readable-stream@2.0.2 (process-nextick-args@1.0.2, util-deprecate@1.0.1, core-util-is@1.0.1)
├── url@0.10.3 (querystring@0.2.0)
├── through2@1.1.1 (readable-stream@1.1.13)
├── duplexer2@0.0.2 (readable-stream@1.1.13)
├── concat-stream@1.4.10 (typedarray@0.0.6, readable-stream@1.1.13)
├── stream-http@1.4.1 (indexof@0.0.1, builtin-status-codes@1.0.0, foreach@2.0.5, object-keys@1.0.4)
├── resolve@1.1.6
├── shasum@1.0.1 (sha.js@2.3.6, json-stable-stringify@0.0.1)
├── buffer@3.4.2 (ieee754@1.1.6, is-array@1.0.1, base64-js@0.0.8)
├── read-only-stream@1.1.1 (readable-wrap@1.0.0, readable-stream@1.1.13)
├── glob@4.5.3 (once@1.3.2, inflight@1.0.4, minimatch@2.0.10)
├── labeled-stream-splicer@1.0.2 (stream-splicer@1.3.2)
├── syntax-error@1.1.4 (acorn@1.2.2)
├── JSONStream@1.0.4 (through@2.3.8, jsonparse@1.0.0)
├── browser-pack@5.0.1 (umd@3.0.1, combine-source-map@0.6.1)
├── browserify-zlib@0.1.4 (pako@0.2.7)
├── insert-module-globals@6.5.2 (combine-source-map@0.6.1, lexical-scope@1.1.1)
├── crypto-browserify@3.9.14 (randombytes@2.0.1, create-hmac@1.1.3, pbkdf2@3.0.4, create-hash@1.1.1, browserify-aes@1.0.3, diffie-hellman@3.0.2, create-ecdh@2.0.1, browserify-sign@3.0.3, public-encrypt@2.0.1)
└── module-deps@3.9.0 (readable-stream@1.1.13, stream-combiner2@1.0.2, detective@4.1.1)
loopback@2.21.0 node_modules/loopback
├── sl-blip@1.0.0
├── uid2@0.0.3
├── nodemailer-stub-transport@0.1.5
├── stable@0.1.5
├── canonical-json@0.0.4
├── depd@1.0.1
├── inflection@1.7.1
├── async@0.9.2
├── loopback-phase@1.2.0
├── loopback-connector-remote@1.0.3
├── bcryptjs@2.2.1
├── ejs@2.3.3
├── underscore.string@3.1.1
├── body-parser@1.13.3 (bytes@2.1.0, content-type@1.0.1, qs@4.0.0, on-finished@2.3.0, raw-body@2.1.2, http-errors@1.3.1, type-is@1.6.6, iconv-lite@0.4.11)
├── continuation-local-storage@3.1.4 (emitter-listener@1.0.1, async-listener@0.5.6)
├── express@4.13.3 (escape-html@1.0.2, merge-descriptors@1.0.0, array-flatten@1.1.1, cookie@0.1.3, utils-merge@1.0.0, cookie-signature@1.0.6, methods@1.1.1, fresh@0.3.0, range-parser@1.0.2, vary@1.0.1, path-to-regexp@0.1.7, etag@1.7.0, content-type@1.0.1, parseurl@1.3.0, content-disposition@0.5.0, serve-static@1.10.0, on-finished@2.3.0, finalhandler@0.4.0, qs@4.0.0, proxy-addr@1.0.8, send@0.13.0, type-is@1.6.6, accepts@1.2.12)
├── nodemailer@1.4.0 (nodemailer-direct-transport@1.0.2, nodemailer-smtp-transport@1.0.3, buildmail@1.2.4, hyperquest@1.2.0, libmime@1.0.0)
└── strong-remoting@2.20.1 (eventemitter2@0.4.14, qs@2.4.2, js2xmlparser@0.1.9, sse@0.0.6, traverse@0.6.6, cors@2.7.1, mux-demux@3.7.9, jayson@1.2.0, xml2js@0.4.10, request@2.60.0)
loopback-explorer@1.8.0 node_modules/loopback-explorer
├── debug@1.0.4 (ms@0.6.2)
├── cors@2.7.1 (vary@1.0.1)
├── lodash@2.4.2
├── express@3.21.2 (escape-html@1.0.2, merge-descriptors@1.0.0, cookie@0.1.3, utils-merge@1.0.0, cookie-signature@1.0.6, methods@1.1.1, fresh@0.3.0, range-parser@1.0.2, vary@1.0.1, basic-auth@1.0.3, etag@1.7.0, content-type@1.0.1, parseurl@1.3.0, content-disposition@0.5.0, commander@2.6.0, depd@1.0.1, debug@2.2.0, proxy-addr@1.0.8, send@0.13.0, mkdirp@0.5.1, connect@2.30.2)
└── swagger-ui@2.0.24 (coffee-script@1.6.3, swagger-client@2.0.36, handlebars@1.0.12, less@1.4.2)
➜ [master] ~/workspace/scratch/loopback-example-pubsub $ gulp
[10:17:06] Using gulpfile ~/workspace/scratch/loopback-example-pubsub/gulpfile.js
[10:17:06] Starting 'default'...
[10:17:07] Loaded LoopBack app /Users/beeman/workspace/scratch/loopback-example-pubsub/server/server.js
[10:17:07] Generating lbServices for the API endpoint /api
Warning: scope User.accessTokens targets class "AccessToken", which is not exposed
via remoting. The Angular code for this scope won't be generated.
[10:17:07] Generated Angular services file.
[10:17:07] Finished 'default' after 986 ms
^C
➜ [master] ~/workspace/scratch/loopback-example-pubsub $ node server/server.js
Browse your REST API at http://0.0.0.0:3000/explorer
Web server listening at: http://0.0.0.0:3000/
events.js:85
throw er; // Unhandled 'error' event
^
Error: connect ECONNREFUSED
at exports._errnoException (util.js:746:11)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1010:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment