npm / registry-issue-archive

An archive of the old npm registry issue tracker
https://npm.community
249 stars 47 forks source link

Publishing new version of existing package returns PUT 400 error #312

Open liquorvicar opened 6 years ago

liquorvicar commented 6 years ago

I am using np to publish a new major version of a private package. My first attempt failed as there was a linting issue in the code. All subsequent attempts have failed with the following error:

27 verbose publish registryBase https://registry.npmjs.org/
28 silly publish uploading /var/folders/rb/p6fzmh512xz9hs8d7_704wm11frsvy/T/npm-11730-de3fbf37/tmp/fromDir-049f8c24/package.tgz
29 verbose request uri https://registry.npmjs.org/@private%2fpackage-name
30 verbose request sending authorization for write operation
31 info attempt registry request try #1 at 11:42:41 AM
32 verbose request using bearer token for auth
33 verbose request id 196e7544239ae262
34 http request PUT https://registry.npmjs.org/@private%2fpackage-name
35 http 400 https://registry.npmjs.org/@private%2fpackage-name
36 verbose headers { 'content-type': 'application/json',
36 verbose headers   'cache-control': 'max-age=0',
36 verbose headers   'content-length': '87',
36 verbose headers   'accept-ranges': 'bytes',
36 verbose headers   date: 'Wed, 18 Apr 2018 10:40:57 GMT',
36 verbose headers   via: '1.1 varnish',
36 verbose headers   connection: 'keep-alive',
36 verbose headers   'x-served-by': 'cache-lhr6340-LHR',
36 verbose headers   'x-cache': 'MISS',
36 verbose headers   'x-cache-hits': '0',
36 verbose headers   'x-timer': 'S1524048055.948340,VS0,VE2797' }
37 error publish Failed PUT 400
johnwards commented 6 years ago

Any answer to this?