Skip to content

Instantly share code, notes, and snippets.

View crandmck's full-sized avatar

Rand McKinney crandmck

View GitHub Profile
@crandmck
crandmck / slserr
Created August 23, 2014 04:35
Studio error
$ strong-studio
module.js:340
throw err;
^
Error: Cannot find module 'loopback-explorer'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
$ git clone https://github.com/strongloop/loopback-example-extendedAPI.git
$ cd loopback-example-extendedAPI/
$ cd client
$ mkdir js
$ lb-ng ../server/server.js client/js/lb-services.js
Loading LoopBack app "/Users/rand/StrongLoop/gs/loopback-example-extendedAPI/server/server.js"
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.
@crandmck
crandmck / node11-error
Last active August 29, 2015 14:06
Error when running app with node 0.11.13
$ node --version
v0.11.13
$
$ cd loopback-example-app
$ node .
Using the memory connector.
To specify another connector:
`DB=oracle node .` or `DB=oracle slc run .`
`DB=mongodb node .` or `DB=mongodb slc run .`
`DB=mysql node .` or `DB=mysql slc run .`
@crandmck
crandmck / gist:1e3b796c92a93e4c486b
Last active August 29, 2015 14:06
loopback-example-app error with Node 0.11
$ node --version
v0.11.13
$ cd loopback-example-app
$ slc run
INFO strong-agent not profiling, StrongOps configuration not found.
Generate configuration with:
npm install -g strongloop
slc strongops
See http://docs.strongloop.com/strong-agent for more information.
@crandmck
crandmck / gist:27ca40097973ad307901
Created March 2, 2015 17:02
API metrics from loopback-getting-started-intermediate
Browse your REST API at http://0.0.0.0:3000/explorer
Web server listening at: http://0.0.0.0:3000/
> models created sucessfully
url:/|1|c
status:304|1|c
response-time|undefined|ms
url:/css/style.css|1|c
status:304|1|c
response-time|undefined|ms
url:/vendor/angular.js|1|c
@crandmck
crandmck / gist:6dac58b6ad3d0c84fb91
Created May 14, 2015 23:44
Arc error running app with App Controller
Unexpected exit with 8 from Runner: commit default/local-directory in /Users/rand/StrongLoop/loopback-example-app
Start Runner: commit default/local-directory in /Users/rand/StrongLoop/loopback-example-app
/usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/bin/sl-run.js:19
strongTracer: tracer(),
^
TypeError: undefined is not a function
at Object.<anonymous> (/usr/local/lib/node_modules/strongloop/node_modules/strong-supervisor/bin/sl-run.js:19:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
@crandmck
crandmck / gist:d780ac18a34da84c1229
Created May 18, 2015 20:35
Failure of slc start
express-example-app rand$ DEBUG=* slc start
slc slc.run: +0ms argv [ 'start' ] options { _: [ 'start' ], '$0': 'slc' }
slc loadCommand +3ms name start run? function usage? object
strong-start:start app is "." +1s
strong-start:pm start +2ms
strong-start:pm alive? undefined +4ms
strong-start:pm pm is alive +1ms
strong-start:start deploy to "http://127.0.0.1:8701" app "." +0ms
strong-mesh-models:client connecting to http://127.0.0.1:8701/api +1ms
express:application compile etag weak +1ms
@crandmck
crandmck / gist:39f1738c78eaa790eaa0
Created July 10, 2015 00:43
strong-remoting API doc push
$ git commit -m "Clean up and fix API docs"
[master 4d96596] Clean up and fix API docs
5 files changed, 108 insertions(+), 84 deletions(-)
Rands-MacBook-Air:strong-remoting rand$ git push
To https://github.com/strongloop/strong-remoting.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/strongloop/strong-remoting.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
@crandmck
crandmck / gist:afe4e8474affefb69fbb
Created July 10, 2015 18:28
Stack trace from slc ctl
$ slc ctl -C http://45.55.19.126
/usr/local/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/utils.js:381
if (!target[key]) {
^
TypeError: Cannot read property 'default' of null
at /usr/local/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/utils.js:381:20
at Array.forEach (native)
at mergeSettings (/usr/local/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/utils.js:376:22)
at Function.ModelClass.extend (/usr/local/lib/node_modules/strongloop/node_modules/loopback-datasource-juggler/lib/model-builder.js:384:26)
at Registry.createModel (/usr/local/lib/node_modules/strongloop/node_modules/loopback/lib/registry.js:122:25)
@crandmck
crandmck / gist:442703c0535c65d82fd1
Last active August 29, 2015 14:25
strong-mesh-models install problems
$ npm cache clear
$ npm i -g strong-mesh-models --registry http://ci.strongloop.com:4873
/usr/local/bin/sl-meshctl -> /usr/local/lib/node_modules/strong-mesh-models/bin/sl-meshctl.js
/usr/local/bin/sl-meshadm -> /usr/local/lib/node_modules/strong-mesh-models/bin/sl-meshadm.js
npm WARN unmet dependency /usr/local/lib/node_modules/bower/node_modules/tar-fs/node_modules/tar-stream/node_modules/bl requires readable-stream@'~1.0.26' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/bower/node_modules/tar-fs/node_modules/tar-stream/node_modules/readable-stream,
npm WARN unmet dependency which is version 1.0.33-1
npm WARN unmet dependency /usr/local/lib/node_modules/loopback-sdk-angular-cli/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/stream-counter requires readable-stream@'~1.1.8' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/loopback-sdk-angular-cli/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/readable-stre