Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cannot publish package after aborting force publish. #4788

Closed
aaditmshah opened this Issue Feb 26, 2014 · 2 comments

Comments

Projects
None yet
3 participants

I recently updated the documentation of my package augment (https://github.com/javascript/augment). Since I didn't want to change the version number I force published it onto npm.

However it was taking too long. Suspecting my notorious ISP I aborted the publish and tried again. This time it gave me an error. I tried clearing the cache and unpublishing the latest version. Everything to no avail.

My node version is v0.11.9 and my npm version is 1.3.15. This is the error message I get:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
2 info using npm@1.3.15
3 info using node@v0.11.9
4 verbose publish [ '.' ]
5 verbose cache add [ '.', null ]
6 verbose cache add name=undefined spec="." args=[".",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url   slashes: null,
7 verbose parsed url   auth: null,
7 verbose parsed url   host: null,
7 verbose parsed url   port: null,
7 verbose parsed url   hostname: null,
7 verbose parsed url   hash: null,
7 verbose parsed url   search: null,
7 verbose parsed url   query: null,
7 verbose parsed url   pathname: '.',
7 verbose parsed url   path: '.',
7 verbose parsed url   href: '.' }
8 silly lockFile 3a52ce78- .
9 verbose lock . /home/aaditmshah/.npm/3a52ce78-.lock
10 verbose tar pack [ '/home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz',
10 verbose tar pack   '.' ]
11 verbose tarball /home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
12 verbose folder .
13 info prepublish augment@4.0.0
14 silly lockFile 1f1177db-tar tar://.
15 verbose lock tar://. /home/aaditmshah/.npm/1f1177db-tar.lock
16 silly lockFile eaa4e009-64967-0-8197101864498109-tmp-tgz tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
17 verbose lock tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz /home/aaditmshah/.npm/eaa4e009-64967-0-8197101864498109-tmp-tgz.lock
18 silly lockFile 1f1177db-tar tar://.
19 silly lockFile 1f1177db-tar tar://.
20 silly lockFile eaa4e009-64967-0-8197101864498109-tmp-tgz tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
21 silly lockFile eaa4e009-64967-0-8197101864498109-tmp-tgz tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
22 verbose tar unpack /home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
23 silly lockFile 7244e1d8-64967-0-8197101864498109-package tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package
24 verbose lock tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package /home/aaditmshah/.npm/7244e1d8-64967-0-8197101864498109-package.lock
25 silly lockFile eaa4e009-64967-0-8197101864498109-tmp-tgz tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
26 verbose lock tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz /home/aaditmshah/.npm/eaa4e009-64967-0-8197101864498109-tmp-tgz.lock
27 silly gunzTarPerm modes [ '755', '644' ]
28 silly gunzTarPerm extractEntry package.json
29 silly gunzTarPerm extractEntry README.md
30 silly gunzTarPerm extractEntry LICENSE
31 silly gunzTarPerm extractEntry augment.js
32 silly gunzTarPerm extractEntry bower.json
33 silly gunzTarPerm extractEntry component.json
34 silly lockFile 7244e1d8-64967-0-8197101864498109-package tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package
35 silly lockFile 7244e1d8-64967-0-8197101864498109-package tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package
36 silly lockFile eaa4e009-64967-0-8197101864498109-tmp-tgz tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
37 silly lockFile eaa4e009-64967-0-8197101864498109-tmp-tgz tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/tmp.tgz
38 verbose tar pack [ '/home/aaditmshah/.npm/augment/4.0.0/package.tgz',
38 verbose tar pack   '/home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package' ]
39 verbose tarball /home/aaditmshah/.npm/augment/4.0.0/package.tgz
40 verbose folder /home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package
41 silly lockFile 7244e1d8-64967-0-8197101864498109-package tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package
42 verbose lock tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package /home/aaditmshah/.npm/7244e1d8-64967-0-8197101864498109-package.lock
43 silly lockFile c4c43892-ah-npm-augment-4-0-0-package-tgz tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz
44 verbose lock tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz /home/aaditmshah/.npm/c4c43892-ah-npm-augment-4-0-0-package-tgz.lock
45 silly lockFile 7244e1d8-64967-0-8197101864498109-package tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package
46 silly lockFile 7244e1d8-64967-0-8197101864498109-package tar:///home/aaditmshah/tmp/npm-5139-dVCOPQ5V/1393380164967-0.8197101864498109/package
47 silly lockFile c4c43892-ah-npm-augment-4-0-0-package-tgz tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz
48 silly lockFile c4c43892-ah-npm-augment-4-0-0-package-tgz tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz
49 silly lockFile a318f2b7-tmshah-npm-augment-4-0-0-package /home/aaditmshah/.npm/augment/4.0.0/package
50 verbose lock /home/aaditmshah/.npm/augment/4.0.0/package /home/aaditmshah/.npm/a318f2b7-tmshah-npm-augment-4-0-0-package.lock
51 silly lockFile a318f2b7-tmshah-npm-augment-4-0-0-package /home/aaditmshah/.npm/augment/4.0.0/package
52 silly lockFile a318f2b7-tmshah-npm-augment-4-0-0-package /home/aaditmshah/.npm/augment/4.0.0/package
53 verbose tar unpack /home/aaditmshah/.npm/augment/4.0.0/package.tgz
54 silly lockFile 679a8710-tmshah-npm-augment-4-0-0-package tar:///home/aaditmshah/.npm/augment/4.0.0/package
55 verbose lock tar:///home/aaditmshah/.npm/augment/4.0.0/package /home/aaditmshah/.npm/679a8710-tmshah-npm-augment-4-0-0-package.lock
56 silly lockFile c4c43892-ah-npm-augment-4-0-0-package-tgz tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz
57 verbose lock tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz /home/aaditmshah/.npm/c4c43892-ah-npm-augment-4-0-0-package-tgz.lock
58 silly gunzTarPerm modes [ '755', '644' ]
59 silly gunzTarPerm extractEntry package.json
60 silly gunzTarPerm extractEntry README.md
61 silly gunzTarPerm extractEntry LICENSE
62 silly gunzTarPerm extractEntry augment.js
63 silly gunzTarPerm extractEntry bower.json
64 silly gunzTarPerm extractEntry component.json
65 silly lockFile 679a8710-tmshah-npm-augment-4-0-0-package tar:///home/aaditmshah/.npm/augment/4.0.0/package
66 silly lockFile 679a8710-tmshah-npm-augment-4-0-0-package tar:///home/aaditmshah/.npm/augment/4.0.0/package
67 silly lockFile c4c43892-ah-npm-augment-4-0-0-package-tgz tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz
68 silly lockFile c4c43892-ah-npm-augment-4-0-0-package-tgz tar:///home/aaditmshah/.npm/augment/4.0.0/package.tgz
69 verbose chmod /home/aaditmshah/.npm/augment/4.0.0/package.tgz 644
70 verbose chown /home/aaditmshah/.npm/augment/4.0.0/package.tgz [ 1000, 1000 ]
71 silly lockFile 3a52ce78- .
72 silly lockFile 3a52ce78- .
73 silly publish { name: 'augment',
73 silly publish   description: 'The world\'s smallest and fastest classical JavaScript inheritance pattern.',
73 silly publish   version: '4.0.0',
73 silly publish   keywords:
73 silly publish    [ 'augment',
73 silly publish      'augments',
73 silly publish      'augmentation',
73 silly publish      'extend',
73 silly publish      'extends',
73 silly publish      'extension',
73 silly publish      'prototype',
73 silly publish      'prototypal',
73 silly publish      'class',
73 silly publish      'classical',
73 silly publish      'object',
73 silly publish      'inheritance',
73 silly publish      'uber',
73 silly publish      'super',
73 silly publish      'constructor',
73 silly publish      'oop' ],
73 silly publish   author:
73 silly publish    { name: 'Aadit M Shah',
73 silly publish      email: 'aaditmshah@myopera.com',
73 silly publish      url: 'http://aaditmshah.github.io/' },
73 silly publish   main: 'augment.js',
73 silly publish   maintainers:
73 silly publish    [ { name: 'Aadit M Shah',
73 silly publish        email: 'aaditmshah@myopera.com',
73 silly publish        url: 'http://aaditmshah.github.io/' } ],
73 silly publish   contributors:
73 silly publish    [ { name: 'Aadit M Shah',
73 silly publish        email: 'aaditmshah@myopera.com',
73 silly publish        url: 'http://aaditmshah.github.io/' } ],
73 silly publish   bugs: { url: 'https://github.com/javascript/augment/issues' },
73 silly publish   licenses: [ { type: 'MIT', url: 'http://opensource.org/licenses/MIT' } ],
73 silly publish   repositories:
73 silly publish    [ { type: 'git',
73 silly publish        url: 'https://github.com/javascript/augment.git' } ],
73 silly publish   dependencies: {},
73 silly publish   homepage: 'https://github.com/javascript/augment',
73 silly publish   readme: '# augment #\n\nThe world\'s smallest and fastest classical JavaScript inheritance pattern, `augment`, is a [seven line function](https://github.com/javascript/augment/blob/master/augment.js#L12-L18 "augment.js") which allows you to write [CoffeeScript style classes](http://coffeescript.org/#classes "CoffeeScript") with a flair of [simplicity](http://ejohn.org/blog/simple-javascript-inheritance/ "John Resig -   Simple JavaScript Inheritance"); and it still [beats the bejesus](http://jsperf.com/oop-benchmark/158 "JavaScript Object Oriented Libraries Benchmark · jsPerf") out of other JavaScript inheritance libraries.\n\nInspired by giants like [Jeremy Ashkenas](http://ashkenas.com/ "Jeremy/Ashkenas — Portfolio") and [John Resig](http://ejohn.org/ "John Resig - JavaScript Programmer"), `augment` is an augmentation of ideas. Classes created using `augment` have a CoffeeScript-like class structure, and a syntax like John Resig\'s classes; but they are more readable, intuitive and orders of magnitude faster. In addition they work on virtually every JavaScript platform.\n\n## Installation ##\n\n1. You can install `augment` on [node.js](http://nodejs.org/ "node.js") using the [npm](https://npmjs.org/ "npm") command `npm install augment`.\n2. You can install `augment` on [RingoJS](http://ringojs.org/ "Home - RingoJS") using the [rp](https://github.com/grob/rp "grob/rp") command `rp install augment`.\n3. You can install `augment` for web apps using the [component](https://github.com/component/component "component/component") command `component install javascript/augment`.\n4. You can install `augment` for web apps using the [bower](http://bower.io/ "Bower - A package manager for the web") command `bower install augment`.\n\n## Usage ##\n\n1. You can use `augment` as a [CommonJS module](http://wiki.commonjs.org/wiki/Modules "Modules - CommonJS Spec Wiki"):\n\n    ```javascript\n    var augment = require("augment"); // module.exports must be supported\n    ```\n\n2. You can use `augment` with the [AMD API](https://github.com/amdjs/amdjs-api "Asynchronous Module Definition (AMD) API"):\n\n    ```javascript\n    define(["augment"], function (augment) {\n        // ....\n    });\n    ```\n\n3. You can include the latest copy in your web pages, [fiddles](http://jsfiddle.net/ "Create a new Fiddle - jsFiddle") and [benchmarks](http://jsperf.com/ "jsPerf: JavaScript performance playground"):\n\n    ```html\n    <script src="https://rawgithub.com/javascript/augment/master/augment.js"></script>\n    ```\n\n4. You can browse the [source code](https://github.com/javascript/augment/blob/master/augment.js "javascript/augment") and stick it into your program.\n\n## Man Pages ##\n\n1. [Getting Started](https://github.com/javascript/augment/wiki/Getting-Started "Getting Started · javascript/augment Wiki")\n2. [Classical Inheritance](https://github.com/javascript/augment/wiki/Classical-Inheritance "Classical Inheritance · javascript/augment Wiki")\n\n## License ##\n\nThe `augment` library is released under the MIT license. So feel free to modify and distribute it as you wish.',
73 silly publish   readmeFilename: 'README.md',
73 silly publish   repository:
73 silly publish    { type: 'git',
73 silly publish      url: 'https://github.com/javascript/augment.git' },
73 silly publish   _id: 'augment@4.0.0',
73 silly publish   dist: { shasum: 'be45890cdc1326957d86c3bc465c7ea3ee5f5cb2' },
73 silly publish   _from: '.' }
74 verbose url raw augment
75 verbose url resolving [ 'https://registry.npmjs.org/', './augment' ]
76 verbose url resolved https://registry.npmjs.org/augment
77 info trying registry request attempt 1 at 07:32:45
78 http PUT https://registry.npmjs.org/augment
79 http 403 https://registry.npmjs.org/augment
80 info trying registry request attempt 1 at 07:32:48
81 http PUT https://registry.npmjs.org/augment
82 http 201 https://registry.npmjs.org/augment
83 verbose url raw augment
84 verbose url resolving [ 'https://registry.npmjs.org/', './augment' ]
85 verbose url resolved https://registry.npmjs.org/augment
86 info trying registry request attempt 1 at 07:32:50
87 http GET https://registry.npmjs.org/augment
88 http 200 https://registry.npmjs.org/augment
89 verbose uploading [ 'augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9',
89 verbose uploading   '/home/aaditmshah/.npm/augment/4.0.0/package.tgz' ]
90 verbose url raw augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9
91 verbose url resolving [ 'https://registry.npmjs.org/',
91 verbose url resolving   './augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9' ]
92 verbose url resolved https://registry.npmjs.org/augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9
93 info trying registry request attempt 1 at 07:32:51
94 http PUT https://registry.npmjs.org/augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9
95 http 403 https://registry.npmjs.org/augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9
96 info trying registry request attempt 1 at 07:32:55
97 http PUT https://registry.npmjs.org/augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9
98 http 400 https://registry.npmjs.org/augment/-/augment-4.0.0.tgz/-rev/57-20e0ef7638677c0c33466e6516c5edd9
99 verbose bad json <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
99 verbose bad json <html><head>
99 verbose bad json <title>400 Bad Request</title>
99 verbose bad json </head><body>
99 verbose bad json <h1>Bad Request</h1>
99 verbose bad json <p>Your browser sent a request that this server could not understand.<br />
99 verbose bad json </p>
99 verbose bad json </body></html>
100 error registry error parsing json
101 error publish Error uploading package
102 error SyntaxError: Unexpected token <
102 error     at Object.parse (native)
102 error     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:238:23)
102 error     at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:129:22)
102 error     at Request.EventEmitter.emit (events.js:101:17)
102 error     at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:873:14)
102 error     at Request.EventEmitter.emit (events.js:120:20)
102 error     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:824:12)
102 error     at IncomingMessage.EventEmitter.emit (events.js:120:20)
102 error     at _stream_readable.js:896:16
102 error     at process._tickCallback (node.js:598:11)
103 error If you need help, you may report this log at:
103 error     <http://github.com/isaacs/npm/issues>
103 error or email it to:
103 error     <npm-@googlegroups.com>
104 error System Linux 3.11.0-17-generic
105 error command "/usr/local/bin/node" "/usr/local/bin/npm" "publish"
106 error cwd /home/aaditmshah/Repositories/augment
107 error node -v v0.11.9
108 error npm -v 1.3.15
109 verbose exit [ 1, true ]

@othiym23 othiym23 added the support label Sep 26, 2014

Contributor

smikes commented Nov 26, 2014

Is this still a problem for you?

I believe that the problem here is that once a project is published, it cannot be republished (even after unpublish) without also changing the version number. For a minor change like documentation, it usually works to run

$ npm version patch
$ npm publish

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and re-open it!)

Thanks!

Contributor

othiym23 commented Dec 5, 2014

Closing as abandoned. Open a new issue if you encounter this behavior again!

@othiym23 othiym23 closed this Dec 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment