Skip to content

Instantly share code, notes, and snippets.

@natlownes
Created May 15, 2013 16:10
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 natlownes/5585159 to your computer and use it in GitHub Desktop.
Save natlownes/5585159 to your computer and use it in GitHub Desktop.
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/Users/nat/.nvm/v0.8.23/bin/npm', 'publish', '.' ]
2 info using npm@1.1.71
3 info using node@v0.8.23
4 verbose publish [ '.' ]
5 verbose read json /Users/nat/src/headrest/package.json
6 verbose cache add [ '.', null ]
7 silly cache add name=undefined spec="." args=[".",null]
8 verbose parsed url { pathname: '.', path: '.', href: '.' }
9 silly lockFile 3a52ce78- .
10 verbose lock . /Users/nat/.npm/3a52ce78-.lock
11 verbose read json package.json
12 verbose tar pack [ '/tmp/npm-37305/1368632823032-0.052746623987331986/tmp.tgz',
12 verbose tar pack '.' ]
13 verbose tarball /tmp/npm-37305/1368632823032-0.052746623987331986/tmp.tgz
14 verbose folder .
15 info prepublish headrest@0.0.1
16 silly lockFile 8dc3f0c6-032-0-052746623987331986-tmp-tgz /tmp/npm-37305/1368632823032-0.052746623987331986/tmp.tgz
17 verbose lock /tmp/npm-37305/1368632823032-0.052746623987331986/tmp.tgz /Users/nat/.npm/8dc3f0c6-032-0-052746623987331986-tmp-tgz.lock
18 silly lockFile 8dc3f0c6-032-0-052746623987331986-tmp-tgz /tmp/npm-37305/1368632823032-0.052746623987331986/tmp.tgz
19 verbose tar unpack /tmp/npm-37305/1368632823032-0.052746623987331986/tmp.tgz
20 silly lockFile 8d9fce28-032-0-052746623987331986-package /tmp/npm-37305/1368632823032-0.052746623987331986/package
21 verbose lock /tmp/npm-37305/1368632823032-0.052746623987331986/package /Users/nat/.npm/8d9fce28-032-0-052746623987331986-package.lock
22 silly gunzTarPerm modes [ '755', '644' ]
23 silly gunzTarPerm extractEntry package.json
24 silly gunzTarPerm extractEntry .npmignore
25 silly gunzTarPerm extractEntry README.md
26 silly gunzTarPerm extractEntry CHANGELOG.md
27 silly gunzTarPerm extractEntry EXAMPLE-Gruntfile.coffee
28 silly gunzTarPerm extractEntry .travis.yml
29 silly gunzTarPerm extractEntry lib/headrest.coffee
30 silly gunzTarPerm extractEntry lib/headrest_middleware.coffee
31 silly gunzTarPerm extractEntry test/headrest_middleware_spec.coffee
32 silly gunzTarPerm extractEntry test/headrest_spec.coffee
33 silly gunzTarPerm extractEntry test/helpers.coffee
34 silly gunzTarPerm extractEntry Cakefile
35 silly gunzTarPerm extractEntry index.coffee
36 verbose read json /tmp/npm-37305/1368632823032-0.052746623987331986/package/package.json
37 silly lockFile 8d9fce28-032-0-052746623987331986-package /tmp/npm-37305/1368632823032-0.052746623987331986/package
38 verbose from cache /tmp/npm-37305/1368632823032-0.052746623987331986/package/package.json
39 verbose tar pack [ '/Users/nat/.npm/headrest/0.0.1/package.tgz',
39 verbose tar pack '/tmp/npm-37305/1368632823032-0.052746623987331986/package' ]
40 verbose tarball /Users/nat/.npm/headrest/0.0.1/package.tgz
41 verbose folder /tmp/npm-37305/1368632823032-0.052746623987331986/package
42 silly lockFile 0d10c915-t-npm-headrest-0-0-1-package-tgz /Users/nat/.npm/headrest/0.0.1/package.tgz
43 verbose lock /Users/nat/.npm/headrest/0.0.1/package.tgz /Users/nat/.npm/0d10c915-t-npm-headrest-0-0-1-package-tgz.lock
44 silly lockFile 0d10c915-t-npm-headrest-0-0-1-package-tgz /Users/nat/.npm/headrest/0.0.1/package.tgz
45 silly lockFile b31ebc35-s-nat-npm-headrest-0-0-1-package /Users/nat/.npm/headrest/0.0.1/package
46 verbose lock /Users/nat/.npm/headrest/0.0.1/package /Users/nat/.npm/b31ebc35-s-nat-npm-headrest-0-0-1-package.lock
47 silly lockFile b31ebc35-s-nat-npm-headrest-0-0-1-package /Users/nat/.npm/headrest/0.0.1/package
48 verbose tar unpack /Users/nat/.npm/headrest/0.0.1/package.tgz
49 silly lockFile b31ebc35-s-nat-npm-headrest-0-0-1-package /Users/nat/.npm/headrest/0.0.1/package
50 verbose lock /Users/nat/.npm/headrest/0.0.1/package /Users/nat/.npm/b31ebc35-s-nat-npm-headrest-0-0-1-package.lock
51 silly gunzTarPerm modes [ '755', '644' ]
52 silly gunzTarPerm extractEntry package.json
53 silly gunzTarPerm extractEntry .npmignore
54 silly gunzTarPerm extractEntry README.md
55 silly gunzTarPerm extractEntry .travis.yml
56 silly gunzTarPerm extractEntry Cakefile
57 silly gunzTarPerm extractEntry CHANGELOG.md
58 silly gunzTarPerm extractEntry EXAMPLE-Gruntfile.coffee
59 silly gunzTarPerm extractEntry index.coffee
60 silly gunzTarPerm extractEntry lib/headrest.coffee
61 silly gunzTarPerm extractEntry lib/headrest_middleware.coffee
62 silly gunzTarPerm extractEntry test/headrest_middleware_spec.coffee
63 silly gunzTarPerm extractEntry test/headrest_spec.coffee
64 silly gunzTarPerm extractEntry test/helpers.coffee
65 verbose read json /Users/nat/.npm/headrest/0.0.1/package/package.json
66 silly lockFile b31ebc35-s-nat-npm-headrest-0-0-1-package /Users/nat/.npm/headrest/0.0.1/package
67 silly shasum updated bytes 6320
68 info shasum 3594d256f0ee5f13f2a1b75f6930ad46a94c6f69
68 info shasum /Users/nat/.npm/headrest/0.0.1/package.tgz
69 verbose from cache /Users/nat/.npm/headrest/0.0.1/package/package.json
70 verbose chmod /Users/nat/.npm/headrest/0.0.1/package.tgz 644
71 verbose chown /Users/nat/.npm/headrest/0.0.1/package.tgz [ 501, 20 ]
72 silly lockFile 3a52ce78- .
73 silly publish { name: 'headrest',
73 silly publish author:
73 silly publish { name: 'Nat Lownes',
73 silly publish email: 'nat.lownes@gmail.com',
73 silly publish url: 'http://looting.biz/' },
73 silly publish description: 'A restful, CORS enabled development server - for clicking around front end Javascript projects.',
73 silly publish main: './index.coffee',
73 silly publish version: '0.0.1',
73 silly publish dist: 'pkg',
73 silly publish dependencies:
73 silly publish { 'coffee-script': '~1.6.0',
73 silly publish express: '~3.1.0',
73 silly publish whoadb: '~0.1.x' },
73 silly publish devDependencies:
73 silly publish { 'honk-cake': 'git://github.com/natlownes/honk-cake.git#dependencies',
73 silly publish grunt: '~0.4.0',
73 silly publish mocha: '~1.8.1',
73 silly publish superagent: '~0.14.x',
73 silly publish chai: '~1.4.2',
73 silly publish q: '~0.9.x' },
73 silly publish directories: { test: 'test', lib: 'lib' },
73 silly publish scripts: { test: 'cake test' },
73 silly publish readmeFilename: 'README.md',
73 silly publish repository: { type: 'git', url: 'git://github.com/natlownes/headrest.git' },
73 silly publish keywords:
73 silly publish [ 'rest',
73 silly publish 'webserver',
73 silly publish 'server',
73 silly publish 'http',
73 silly publish 'test',
73 silly publish 'testing',
73 silly publish 'js',
73 silly publish 'frontend',
73 silly publish 'clicking' ],
73 silly publish license: 'BSD',
73 silly publish optionalDependencies: {},
73 silly publish engines: { node: '*' },
73 silly publish readme: '# headrest\n\n[![Build Status](https://travis-ci.org/natlownes/headrest.png?branch=master)](https://travis-ci.org/natlownes/headrest)\n\nProvides a RESTful,\n[CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) enabled\nwebserver intended for use when developing rest-backed Javascript apps for the\nbrowser. If you want to click around in your app, create/read/update/delete\nobjects, but not fire up an entire backend, that is what this is for.\n\nAssumes you init your JS app with or otherwise set an api root URL from which your\nmodels build the correct URL for their resource.\n\nYou can set the apiRoot like:\n\n```coffeescript\nheadrest = require(\'headrest\')(apiRoot: \'/apis/\', dbPath: \'/tmp/gruntest.json\')\n# headrest is an express app\n```\n\n#### Resources\n\nIt assumes your resources have paths like:\n\n* for a list of resources (index), ```/api/rocks``` or nested as deep as you\n like - ```/api/rocks/ffeedc/sedimentaries``` and so on.\n* for a single resource, ```/api/rocks/ffeedc```, also nested as far as you\n want.\n\n#### Sessions\n\nImplements sessions at ```/api/session```.\n\n* POST whatever you want to ```/api/session```, you\'ll get a Cookie.\n\n* GET ```/api/session``` - HTTP 200 means you\'re logged in, 404 if not.\n\n* DELETE ```/api/session``` - removes your session record and sets your cookie\n to expire.\n\n### Example Gruntfile.coffee\n\n```coffeescript\n\nheadrest = require(\'headrest\')(apiRoot: \'/apis/\', dbPath: \'/tmp/gruntest.json\')\n\n\nmodule.exports = (grunt) ->\n grunt.loadNpmTasks(\'grunt-contrib-connect\')\n\n grunt.registerTask(\'headrest\',\n [\n \'connect\'\n ]\n )\n\n grunt.initConfig\n connect:\n headrest:\n options:\n port: 5001\n hostname: "0.0.0.0"\n keepalive: true\n middleware: (connect, options) ->\n [headrest]\n\n\n```\n\n```bash\ngrunt headrest\n```\n\nThis will start the server on ```http://0.0.0.0:5001/```. From a browser, you\ncan create an object with:\n\n```javascript\n\nvar request = $.ajax({\n url: "http://localhost:5001/apis/rocks",\n dataType: "json",\n crossDomain: true,\n type: \'POST\',\n data: {name: "sedimentary"}\n})\n\nrequest.done(function(d) {\n var rock = JSON.parse(d)\n console.log( rock.id )\n})\n\n// console output:\n// > 7cf28fd544be1b7f55296c45d40538f\n\nvar request = $.ajax({\n url: "http://localhost:5001/apis/rocks/7cf28fd544be1b7f55296c45d40538f",\n dataType: "json",\n crossDomain: true,\n type: \'PUT\',\n data: {name: "Igneous"}\n})\n\nrequest.done(function(d) {\n console.log(\'updated\')\n})\n\nvar request = $.ajax({\n url: "http://localhost:5001/apis/rocks/7cf28fd544be1b7f55296c45d40538f",\n dataType: "json",\n crossDomain: true,\n type: \'DELETE\'\n})\n\nrequest.done(function(d) {\n console.log(\'removed\')\n})\n\n```\n\n### TODO:\n\n* allow setting of session path.\n\n### Contributing\n\nFork and\n\n```npm install```\n\n```npm test```\n\nor\n\n```cake test:watch```\n\nOr if any of this code is wack and you think there\'s a better way to do it, I\ndefinitely want to hear about it, no joke.\n\n### That\'s it!\n\nI yanked this idea from my homie Mark\'s footrest.py\n\n',
73 silly publish _id: 'headrest@0.0.1' }
74 verbose url raw headrest
75 verbose url resolving [ 'https://registry.npmjs.org/', './headrest' ]
76 verbose url resolved https://registry.npmjs.org/headrest
77 info trying registry request attempt 1 at 11:47:03
78 http PUT https://registry.npmjs.org/headrest
79 http 409 https://registry.npmjs.org/headrest
80 verbose url raw headrest
81 verbose url resolving [ 'https://registry.npmjs.org/', './headrest' ]
82 verbose url resolved https://registry.npmjs.org/headrest
83 info trying registry request attempt 1 at 11:47:03
84 http GET https://registry.npmjs.org/headrest
85 http 200 https://registry.npmjs.org/headrest
86 verbose url raw headrest/0.0.1/-tag/latest
87 verbose url resolving [ 'https://registry.npmjs.org/',
87 verbose url resolving './headrest/0.0.1/-tag/latest' ]
88 verbose url resolved https://registry.npmjs.org/headrest/0.0.1/-tag/latest
89 info trying registry request attempt 1 at 11:47:04
90 http PUT https://registry.npmjs.org/headrest/0.0.1/-tag/latest
91 http 403 https://registry.npmjs.org/headrest/0.0.1/-tag/latest
92 error publish Error sending version data
93 error Error: forbidden user: null not authorized to modify headrest
93 error Added: dist-tags.latest
93 error Added: versions.0.0.1
93 error Changed: time.modified "2013-05-15T15:28:31.561Z" -> "2013-05-15T15:47:04.401Z"
93 error Added: time.0.0.1
93 error Added: author
93 error Added: repository: headrest/0.0.1/-tag/latest
93 error at RegClient.<anonymous> (/Users/nat/.nvm/v0.8.23/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:259:14)
93 error at Request.init.self.callback (/Users/nat/.nvm/v0.8.23/lib/node_modules/npm/node_modules/request/main.js:120:22)
93 error at Request.EventEmitter.emit (events.js:99:17)
93 error at Request.<anonymous> (/Users/nat/.nvm/v0.8.23/lib/node_modules/npm/node_modules/request/main.js:648:16)
93 error at Request.EventEmitter.emit (events.js:126:20)
93 error at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/Users/nat/.nvm/v0.8.23/lib/node_modules/npm/node_modules/request/main.js:610:14)
93 error at IncomingMessage.EventEmitter.emit (events.js:126:20)
93 error at IncomingMessage._emitEnd (http.js:366:10)
93 error at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
93 error at CleartextStream.socketOnData [as ondata] (http.js:1485:20)
94 error If you need help, you may report this log at:
94 error <http://github.com/isaacs/npm/issues>
94 error or email it to:
94 error <npm-@googlegroups.com>
95 error System Darwin 11.4.0
96 error command "node" "/Users/nat/.nvm/v0.8.23/bin/npm" "publish" "."
97 error cwd /Users/nat/src/headrest
98 error node -v v0.8.23
99 error npm -v 1.1.71
100 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment