{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/15312","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/15312/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/15312/comments","events_url":"https://api.github.com/repos/npm/npm/issues/15312/events","html_url":"https://github.com/npm/npm/issues/15312","id":197502805,"number":15312,"title":"Can't unpublish,Registry returned 400 for DELETE","user":{"login":"dongwenxiao","id":4394559,"avatar_url":"https://avatars.githubusercontent.com/u/4394559?v=3","gravatar_id":"","url":"https://api.github.com/users/dongwenxiao","html_url":"https://github.com/dongwenxiao","followers_url":"https://api.github.com/users/dongwenxiao/followers","following_url":"https://api.github.com/users/dongwenxiao/following{/other_user}","gists_url":"https://api.github.com/users/dongwenxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/dongwenxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongwenxiao/subscriptions","organizations_url":"https://api.github.com/users/dongwenxiao/orgs","repos_url":"https://api.github.com/users/dongwenxiao/repos","events_url":"https://api.github.com/users/dongwenxiao/events{/privacy}","received_events_url":"https://api.github.com/users/dongwenxiao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-25T14:16:55Z","updated_at":"2016-12-25T18:43:15Z","closed_at":"2016-12-25T18:43:15Z","body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is crashing.\r\n  - [ ] npm is producing an incorrect install.\r\n  - [x] npm is doing something I don't understand.\r\n  - [ ] Other (_see below for feature requests_):\r\n\r\n#### What's going wrong?\r\n\r\ndo unpublish module, but , response 400\r\n\r\n#### How can the CLI team reproduce the problem?\r\n\r\n```npm unpublish wapper-css-loader --force```\r\n\r\n```\r\n// npm-debug.log\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/bin/node',\r\n1 verbose cli   '/usr/local/bin/npm',\r\n1 verbose cli   'unpublish',\r\n1 verbose cli   'wapper-css-loader',\r\n1 verbose cli   '--force' ]\r\n2 info using npm@3.10.9\r\n3 info using node@v7.1.0\r\n4 warn using --force I sure hope you know what you are doing.\r\n5 silly unpublish args[0] wapper-css-loader\r\n6 silly unpublish thing Result {\r\n6 silly unpublish   raw: 'wapper-css-loader',\r\n6 silly unpublish   scope: null,\r\n6 silly unpublish   escapedName: 'wapper-css-loader',\r\n6 silly unpublish   name: 'wapper-css-loader',\r\n6 silly unpublish   rawSpec: '',\r\n6 silly unpublish   spec: 'latest',\r\n6 silly unpublish   type: 'tag' }\r\n7 verbose getPublishConfig null\r\n8 silly ls normalized wapper-css-loader\r\n9 silly gentlyRm /Users/dongwenxiao/.npm/wapper-css-loader is being purged\r\n10 verbose gentlyRm don't care about contents; nuking /Users/dongwenxiao/.npm/wapper-css-loader\r\n11 silly mapToRegistry name wapper-css-loader\r\n12 silly mapToRegistry using default registry\r\n13 silly mapToRegistry registry https://registry.npmjs.org/\r\n14 silly mapToRegistry data Result {\r\n14 silly mapToRegistry   raw: 'wapper-css-loader',\r\n14 silly mapToRegistry   scope: null,\r\n14 silly mapToRegistry   escapedName: 'wapper-css-loader',\r\n14 silly mapToRegistry   name: 'wapper-css-loader',\r\n14 silly mapToRegistry   rawSpec: '',\r\n14 silly mapToRegistry   spec: 'latest',\r\n14 silly mapToRegistry   type: 'tag' }\r\n15 silly mapToRegistry uri https://registry.npmjs.org/wapper-css-loader\r\n16 verbose get GET as part of write; not caching result\r\n17 verbose request uri https://registry.npmjs.org/wapper-css-loader?write=true\r\n18 verbose request no auth needed\r\n19 info attempt registry request try #1 at 22:05:01\r\n20 verbose request using bearer token for auth\r\n21 verbose request id 3779529fa85c7804\r\n22 http request GET https://registry.npmjs.org/wapper-css-loader?write=true\r\n23 http 200 https://registry.npmjs.org/wapper-css-loader?write=true\r\n24 verbose headers { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',\r\n24 verbose headers   'content-type': 'application/json',\r\n24 verbose headers   etag: '\"5859dfd0-43e4\"',\r\n24 verbose headers   'content-encoding': 'gzip',\r\n24 verbose headers   'cache-control': 'max-age=0',\r\n24 verbose headers   'transfer-encoding': 'chunked',\r\n24 verbose headers   'accept-ranges': 'bytes',\r\n24 verbose headers   date: 'Sun, 25 Dec 2016 14:05:04 GMT',\r\n24 verbose headers   via: '1.1 varnish',\r\n24 verbose headers   connection: 'keep-alive',\r\n24 verbose headers   'x-served-by': 'cache-nrt6126-NRT',\r\n24 verbose headers   'x-cache': 'MISS',\r\n24 verbose headers   'x-cache-hits': '0',\r\n24 verbose headers   'x-timer': 'S1482674703.964256,VS0,VE565',\r\n24 verbose headers   vary: 'Accept-Encoding' }\r\n25 silly get cb [ 200,\r\n25 silly get   { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',\r\n25 silly get     'content-type': 'application/json',\r\n25 silly get     etag: '\"5859dfd0-43e4\"',\r\n25 silly get     'content-encoding': 'gzip',\r\n25 silly get     'cache-control': 'max-age=0',\r\n25 silly get     'transfer-encoding': 'chunked',\r\n25 silly get     'accept-ranges': 'bytes',\r\n25 silly get     date: 'Sun, 25 Dec 2016 14:05:04 GMT',\r\n25 silly get     via: '1.1 varnish',\r\n25 silly get     connection: 'keep-alive',\r\n25 silly get     'x-served-by': 'cache-nrt6126-NRT',\r\n25 silly get     'x-cache': 'MISS',\r\n25 silly get     'x-cache-hits': '0',\r\n25 silly get     'x-timer': 'S1482674703.964256,VS0,VE565',\r\n25 silly get     vary: 'Accept-Encoding' } ]\r\n26 verbose get saving wapper-css-loader to /Users/dongwenxiao/.npm/registry.npmjs.org/wapper-css-loader_3Fwrite_3Dtrue/.cache.json\r\n27 verbose correctMkdir /Users/dongwenxiao/.npm correctMkdir not in flight; initializing\r\n28 info unpublish No version specified, removing all\r\n29 verbose request uri https://registry.npmjs.org/wapper-css-loader/-rev/11-38957099083d2f97c2cb1ca80789bc3d\r\n30 verbose request sending authorization for write operation\r\n31 info attempt registry request try #1 at 22:05:09\r\n32 verbose request using bearer token for auth\r\n33 http request DELETE https://registry.npmjs.org/wapper-css-loader/-rev/11-38957099083d2f97c2cb1ca80789bc3d\r\n34 http 400 https://registry.npmjs.org/wapper-css-loader/-rev/11-38957099083d2f97c2cb1ca80789bc3d\r\n35 verbose headers { 'content-type': 'application/json',\r\n35 verbose headers   'cache-control': 'max-age=300',\r\n35 verbose headers   'content-length': '17',\r\n35 verbose headers   'accept-ranges': 'bytes',\r\n35 verbose headers   date: 'Sun, 25 Dec 2016 14:05:11 GMT',\r\n35 verbose headers   via: '1.1 varnish',\r\n35 verbose headers   connection: 'keep-alive',\r\n35 verbose headers   'x-served-by': 'cache-nrt6126-NRT',\r\n35 verbose headers   'x-cache': 'MISS',\r\n35 verbose headers   'x-cache-hits': '0',\r\n35 verbose headers   'x-timer': 'S1482674710.432511,VS0,VE642',\r\n35 verbose headers   vary: 'Accept-Encoding' }\r\n36 verbose request invalidating /Users/dongwenxiao/.npm/registry.npmjs.org/wapper-css-loader on DELETE\r\n37 verbose stack Error: Registry returned 400 for DELETE on https://registry.npmjs.org/wapper-css-loader/-rev/11-38957099083d2f97c2cb1ca80789bc3d\r\n37 verbose stack     at makeError (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:302:12)\r\n37 verbose stack     at CachingRegistryClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:280:14)\r\n37 verbose stack     at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:210:14)\r\n37 verbose stack     at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:187:22)\r\n37 verbose stack     at emitTwo (events.js:106:13)\r\n37 verbose stack     at Request.emit (events.js:191:7)\r\n37 verbose stack     at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1048:10)\r\n37 verbose stack     at emitOne (events.js:96:13)\r\n37 verbose stack     at Request.emit (events.js:188:7)\r\n37 verbose stack     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:969:12)\r\n38 verbose statusCode 400\r\n39 verbose pkgid wapper-css-loader\r\n40 verbose cwd /Users/dongwenxiao/Documents/work_my/wapper-css-loader\r\n41 error Darwin 16.1.0\r\n42 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"unpublish\" \"wapper-css-loader\" \"--force\"\r\n43 error node v7.1.0\r\n44 error npm  v3.10.9\r\n45 error code E400\r\n46 error Registry returned 400 for DELETE on https://registry.npmjs.org/wapper-css-loader/-rev/11-38957099083d2f97c2cb1ca80789bc3d\r\n47 error If you need help, you may report this error at:\r\n47 error     <https://github.com/npm/npm/issues>\r\n48 verbose exit [ 1, true ]\r\n```\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints:3.10.9\r\n - `node -v` prints:v7.1.0\r\n - `npm config get registry` prints:https://registry.npmjs.org/\r\n - Windows, OS X/macOS, or Linux?:OS X/macOS\r\n - Network issues:\r\n   - Geographic location where npm was run:\r\n   - [ ] I use a proxy to connect to the npm registry.\r\n   - [ ] I use a proxy to connect to the web.\r\n   - [ ] I use a proxy when downloading Git repos.\r\n   - [x] I access the npm registry via a VPN\r\n   - [ ] I don't use a proxy, but have limited or unreliable internet access.\r\n - Container:\r\n   - [ ] I develop using Vagrant on Windows.\r\n   - [x] I develop using Vagrant on OS X or Linux.\r\n   - [ ] I develop / deploy using Docker.\r\n   - [ ] I deploy to a PaaS (Triton, Heroku).\r\n\r\n<!--\r\n    Thank you for contributing to npm! Please review this checklist\r\n    before submitting your issue.\r\n\r\n    - Please check if there's a solution in the troubleshooting wiki:\r\n      https://github.com/npm/npm/wiki/Troubleshooting\r\n\r\n    - Also ensure that your new issue conforms to npm's contribution guidelines:\r\n      https://github.com/npm/npm/wiki/Contributing-Guidelines\r\n\r\n    - Participation in this open source project is subject to the npm Code of Conduct:\r\n      https://www.npmjs.com/policies/conduct\r\n\r\n    For feature requests, delete the above and uncomment the section following this one. But first, review the existing feature requests\r\n    and make sure there isn't one that already describes the feature\r\n    you'd like to see added:\r\n      https://github.com/npm/npm/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+label%3Aalready-looked-at\r\n-->\r\n\r\n<!--\r\n\r\n#### What's the feature?\r\n\r\n#### What problem is the feature intended to solve?\r\n\r\n#### Is the absence of this feature blocking you or your team? If so, how?\r\n\r\n#### Is this feature similar to an existing feature in another tool?\r\n\r\n#### Is this a feature you're prepared to implement, with support from the npm CLI team?\r\n\r\n-->\r\n\r\nThank you for any help..."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/269133277","html_url":"https://github.com/npm/npm/issues/15312#issuecomment-269133277","issue_url":"https://api.github.com/repos/npm/npm/issues/15312","id":269133277,"user":{"login":"KenanY","id":733364,"avatar_url":"https://avatars.githubusercontent.com/u/733364?v=3","gravatar_id":"","url":"https://api.github.com/users/KenanY","html_url":"https://github.com/KenanY","followers_url":"https://api.github.com/users/KenanY/followers","following_url":"https://api.github.com/users/KenanY/following{/other_user}","gists_url":"https://api.github.com/users/KenanY/gists{/gist_id}","starred_url":"https://api.github.com/users/KenanY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenanY/subscriptions","organizations_url":"https://api.github.com/users/KenanY/orgs","repos_url":"https://api.github.com/users/KenanY/repos","events_url":"https://api.github.com/users/KenanY/events{/privacy}","received_events_url":"https://api.github.com/users/KenanY/received_events","type":"User","site_admin":false},"created_at":"2016-12-25T18:43:14Z","updated_at":"2016-12-25T18:43:14Z","body":"@dongwenxiao Please email `support@npmjs.com` for package unpublishes. Thanks!"}}
{"actor":{"display_login":"KenanY"}}