{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/4278","labels_url":"https://api.github.com/repos/npm/npm/issues/4278/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/4278/comments","events_url":"https://api.github.com/repos/npm/npm/issues/4278/events","html_url":"https://github.com/npm/npm/issues/4278","id":24013551,"number":4278,"title":"New package publish failed with messages like an install of plugin that doesn't exist","user":{"login":"lazd","id":201344,"avatar_url":"https://avatars.githubusercontent.com/u/201344?v=3","gravatar_id":"","url":"https://api.github.com/users/lazd","html_url":"https://github.com/lazd","followers_url":"https://api.github.com/users/lazd/followers","following_url":"https://api.github.com/users/lazd/following{/other_user}","gists_url":"https://api.github.com/users/lazd/gists{/gist_id}","starred_url":"https://api.github.com/users/lazd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazd/subscriptions","organizations_url":"https://api.github.com/users/lazd/orgs","repos_url":"https://api.github.com/users/lazd/repos","events_url":"https://api.github.com/users/lazd/events{/privacy}","received_events_url":"https://api.github.com/users/lazd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/registry","name":"registry","color":"dd4422"},{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2013-12-10T04:50:41Z","updated_at":"2015-02-03T15:04:04Z","closed_at":null,"body":"I tried to publish a shiny new package and things went arwy.\r\n\r\n## What I typed at the command line\r\n\r\n```\r\n$ npm publish\r\nnpm http PUT https://registry.npmjs.org/gulp-handlebars\r\nnpm http 201 https://registry.npmjs.org/gulp-handlebars\r\nnpm http GET https://registry.npmjs.org/gulp-handlebars\r\nnpm http 404 https://registry.npmjs.org/gulp-handlebars\r\nnpm ERR! 404 'gulp-handlebars' is not in the npm registry.\r\nnpm ERR! 404 You should bug the author to publish it\r\nnpm ERR! 404 \r\nnpm ERR! 404 Note that you can also install from a\r\nnpm ERR! 404 tarball, folder, or http url, or git url.\r\nnpm ERR! System Darwin 12.4.0\r\nnpm ERR! command \"node\" \"/usr/local/bin/npm\" \"publish\"\r\nnpm ERR! cwd /Users/lazd/repos/gulp-handlebars\r\nnpm ERR! node -v v0.10.17\r\nnpm ERR! npm -v 1.3.8\r\nnpm ERR! code E404\r\nnpm ERR! \r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /Users/lazd/repos/gulp-handlebars/npm-debug.log\r\nnpm ERR! not ok code 0\r\n```\r\n\r\nWhat? That's confusing, I should get *that* error when I try to **install** a package that doesn't exist...\r\n\r\n## I tried again\r\n\r\nBecause the best kind of troubleshooting is hitting it with a stick until something changes:\r\n\r\n```\r\n$ npm publish\r\nnpm http PUT https://registry.npmjs.org/gulp-handlebars\r\nnpm http 409 https://registry.npmjs.org/gulp-handlebars\r\nnpm http GET https://registry.npmjs.org/gulp-handlebars\r\nnpm http 200 https://registry.npmjs.org/gulp-handlebars\r\nnpm http PUT https://registry.npmjs.org/gulp-handlebars/-/gulp-handlebars-0.1.0.tgz/-rev/1-92521f86600eacc10b8e4331fb7bd35c\r\nnpm http 201 https://registry.npmjs.org/gulp-handlebars/-/gulp-handlebars-0.1.0.tgz/-rev/1-92521f86600eacc10b8e4331fb7bd35c\r\nnpm http PUT https://registry.npmjs.org/gulp-handlebars/0.1.0/-tag/latest\r\nnpm http 201 https://registry.npmjs.org/gulp-handlebars/0.1.0/-tag/latest\r\n```\r\n\r\n## Success (or so it seems)...\r\n\r\nHowever, I visited the page for the package and got an error:\r\nhttps://npmjs.org/package/gulp-handlebars\r\n\r\nStack:\r\n```\r\nError: invalid package: gulp-handlebars\r\n    at ServerResponse.error (/home/node/npm-www/node_modules/error-page/error-page.js:108:20)\r\n    at MC.ondone (/home/node/npm-www/routes/package-page.js:26:24)\r\n    at MC.next (/home/node/npm-www/node_modules/emcee/emcee.js:45:12)\r\n    at /home/node/npm-www/models/package.js:60:16\r\n    at RegClient.get_ (/home/node/npm-www/node_modules/npm-registry-client/lib/get.js:101:14)\r\n    at RegClient.<anonymous> (/home/node/npm-www/node_modules/npm-registry-client/lib/get.js:37:12)\r\n    at fs.js:266:14\r\n    at Object.oncomplete (fs.js:107:15)\r\n```\r\n\r\nHeaders:\r\n```\r\n{\r\n  \"host\": \"npmjs.org\",\r\n  \"connection\": \"keep-alive\",\r\n  \"cache-control\": \"max-age=0\",\r\n  \"accept\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n  \"user-agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36\",\r\n  \"referer\": \"https://npmjs.org/~\",\r\n  \"accept-encoding\": \"gzip,deflate,sdch\",\r\n  \"accept-language\": \"en-US,en;q=0.8\"\r\n}\r\n```\r\n\r\nError:\r\n```\r\n{}\r\n```\r\n\r\nMessage:\r\n```\r\ninvalid package: gulp-handlebars\r\n```\r\n\r\nUser: lazd\r\nStamp: pid=33116 worker=4 6d7550eac58486fd0fb1ef75860a357230285f44 https://npmjs.org:10004\r\n\r\n## And the 500 fixes itself\r\n\r\n12 minutes later, the 500 error is gone. However, I'm still wondering about the odd response to the initial `npm publish` attempt.\r\n\r\n## Additional details\r\n\r\nHere's my `package.json`:\r\n\r\n```\r\n{\r\n  \"name\": \"gulp-handlebars\",\r\n  \"version\": \"0.1.0\",\r\n  \"description\": \"Handlebars plugin for Gulp\",\r\n  \"main\": \"index.js\",\r\n  \"dependencies\": {\r\n    \"gulp-util\": \"~1.2.0\",\r\n    \"event-stream\": \"~3.0.18\",\r\n    \"handlebars\": \"~1.1.2\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"should\": \"~2.1.1\",\r\n    \"mocha\": \"~1.15.1\"\r\n  },\r\n  \"scripts\": {\r\n    \"test\": \"./node_modules/.bin/mocha\"\r\n  },\r\n  \"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"git://github.com/lazd/gulp-handlebars.git\"\r\n  },\r\n  \"keywords\": [\r\n    \"gulpplugin\",\r\n    \"gulp\",\r\n    \"handlebars\"\r\n  ],\r\n  \"author\": \"Larry Davis <lazdnet@gmail.com>\",\r\n  \"license\": \"MIT\",\r\n  \"bugs\": {\r\n    \"url\": \"https://github.com/lazd/gulp-handlebars/issues\"\r\n  }\r\n}\r\n```\r\n\r\n--\r\n\r\nThis was formerly https://github.com/isaacs/npm-www/issues/491, but as the initial error was very odd, I'm filing it here."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/72665438","html_url":"https://github.com/npm/npm/issues/4278#issuecomment-72665438","issue_url":"https://api.github.com/repos/npm/npm/issues/4278","id":72665438,"user":{"login":"andrey-p","id":1431577,"avatar_url":"https://avatars.githubusercontent.com/u/1431577?v=3","gravatar_id":"","url":"https://api.github.com/users/andrey-p","html_url":"https://github.com/andrey-p","followers_url":"https://api.github.com/users/andrey-p/followers","following_url":"https://api.github.com/users/andrey-p/following{/other_user}","gists_url":"https://api.github.com/users/andrey-p/gists{/gist_id}","starred_url":"https://api.github.com/users/andrey-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrey-p/subscriptions","organizations_url":"https://api.github.com/users/andrey-p/orgs","repos_url":"https://api.github.com/users/andrey-p/repos","events_url":"https://api.github.com/users/andrey-p/events{/privacy}","received_events_url":"https://api.github.com/users/andrey-p/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T15:04:04Z","updated_at":"2015-02-03T15:04:04Z","body":"Everything's been fine with publishing modules as far as I'm concerned."}}