{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/11835","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/11835/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/11835/comments","events_url":"https://api.github.com/repos/npm/npm/issues/11835/events","html_url":"https://github.com/npm/npm/issues/11835","id":139664271,"number":11835,"title":"Invalid Version: 3.12.00, codemirror package can't be installed","user":{"login":"marcj","id":450980,"avatar_url":"https://avatars.githubusercontent.com/u/450980?v=3","gravatar_id":"","url":"https://api.github.com/users/marcj","html_url":"https://github.com/marcj","followers_url":"https://api.github.com/users/marcj/followers","following_url":"https://api.github.com/users/marcj/following{/other_user}","gists_url":"https://api.github.com/users/marcj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcj/subscriptions","organizations_url":"https://api.github.com/users/marcj/orgs","repos_url":"https://api.github.com/users/marcj/repos","events_url":"https://api.github.com/users/marcj/events{/privacy}","received_events_url":"https://api.github.com/users/marcj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-09T18:40:25Z","updated_at":"2016-03-09T19:02:38Z","closed_at":null,"body":"I installed newest version of node and npm and can't install codemirror anymore. I'm working with other projects that use npm as well, and a npm project with deps like following works beautiful fine:\r\n\r\n```\r\n    \"angular\": \"^1.4.8\",\r\n    \"angular-ui-bootstrap\": \"^1.0.3\",\r\n    \"bootstrap\": \"^3.3.6\",\r\n    \"browserify\": \"^13.0.0\",\r\n    \"electron-reload\": \"^0.2.0\",\r\n    \"gulp\": \"^3.9.0\",\r\n    \"gulp-browserify\": \"^0.5.1\",\r\n    \"gulp-sass\": \"^2.1.1\",\r\n    \"gulp-sourcemaps\": \"^1.6.0\",\r\n    \"gulp-typescript\": \"^2.10.0\",\r\n    \"iscroll\": \"^5.1.3\",\r\n    \"moment\": \"^2.11.1\",\r\n    \"n3-charts\": \"^2.0.3\",\r\n    \"randomcolor\": \"^0.4.3\",\r\n    \"tsify\": \"^0.13.2\",\r\n    \"humanize-duration\": \"^3.6.1\"\r\n```\r\nBut when I add codemirror to this project or to a completely new I get some weird error. It tries to load somehow a very old codemirror version `3.12.00`, which did exist but is way too outdated.\r\n\r\n\r\nI do following:\r\n\r\n```bash\r\nrm -rf /Users/marc/.npm/\r\nmkdir test\r\ncd test\r\nnpm install codemirror\r\n```\r\n\r\nthen this error pops up:\r\n\r\n```\r\npm ERR! Darwin 15.3.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"codemirror\"\r\nnpm ERR! node v5.8.0\r\nnpm ERR! npm  v3.7.3\r\n\r\nnpm ERR! Invalid Version: 3.12.00\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/marc/bude/test/npm-debug.log\r\n```\r\n\r\nnpm-debug.log\r\n```\r\n$ cat /Users/marc/bude/test/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   'install',\r\n1 verbose cli   'codemirror' ]\r\n2 info using npm@3.7.3\r\n3 info using node@v5.8.0\r\n4 silly loadCurrentTree Starting\r\n5 silly install loadCurrentTree\r\n6 silly install readLocalPackageData\r\n7 silly fetchPackageMetaData codemirror\r\n8 silly fetchNamedPackageData codemirror\r\n9 silly mapToRegistry name codemirror\r\n10 silly mapToRegistry using default registry\r\n11 silly mapToRegistry registry https://registry.npmjs.org/\r\n12 silly mapToRegistry uri https://registry.npmjs.org/codemirror\r\n13 verbose request uri https://registry.npmjs.org/codemirror\r\n14 verbose request no auth needed\r\n15 info attempt registry request try #1 at 7:36:07 PM\r\n16 verbose request using bearer token for auth\r\n17 verbose request id f110d3f4ac9b0518\r\n18 http request GET https://registry.npmjs.org/codemirror\r\n19 http 200 https://registry.npmjs.org/codemirror\r\n20 verbose headers { server: 'nginx/1.4.6 (Ubuntu)',\r\n20 verbose headers   'content-type': 'application/json',\r\n20 verbose headers   'last-modified': 'Wed, 24 Feb 2016 20:01:35 GMT',\r\n20 verbose headers   etag: '\"56ce0c1f-620da\"',\r\n20 verbose headers   expires: 'Thu, 10 Mar 2016 00:36:07 GMT',\r\n20 verbose headers   'access-control-allow-origin': '*',\r\n20 verbose headers   'access-control-allow-methods': 'GET',\r\n20 verbose headers   'accept-ranges': 'bytes, bytes',\r\n20 verbose headers   'cache-control': 'max-age=300',\r\n20 verbose headers   'content-length': '401626',\r\n20 verbose headers   date: 'Wed, 09 Mar 2016 18:36:07 GMT',\r\n20 verbose headers   via: '1.1 varnish',\r\n20 verbose headers   connection: 'keep-alive',\r\n20 verbose headers   'x-served-by': 'cache-fra1246-FRA',\r\n20 verbose headers   'x-cache': 'MISS',\r\n20 verbose headers   'x-cache-hits': '0',\r\n20 verbose headers   'x-timer': 'S1457548567.568572,VS0,VE48' }\r\n21 silly get cb [ 200,\r\n21 silly get   { server: 'nginx/1.4.6 (Ubuntu)',\r\n21 silly get     'content-type': 'application/json',\r\n21 silly get     'last-modified': 'Wed, 24 Feb 2016 20:01:35 GMT',\r\n21 silly get     etag: '\"56ce0c1f-620da\"',\r\n21 silly get     expires: 'Thu, 10 Mar 2016 00:36:07 GMT',\r\n21 silly get     'access-control-allow-origin': '*',\r\n21 silly get     'access-control-allow-methods': 'GET',\r\n21 silly get     'accept-ranges': 'bytes, bytes',\r\n21 silly get     'cache-control': 'max-age=300',\r\n21 silly get     'content-length': '401626',\r\n21 silly get     date: 'Wed, 09 Mar 2016 18:36:07 GMT',\r\n21 silly get     via: '1.1 varnish',\r\n21 silly get     connection: 'keep-alive',\r\n21 silly get     'x-served-by': 'cache-fra1246-FRA',\r\n21 silly get     'x-cache': 'MISS',\r\n21 silly get     'x-cache-hits': '0',\r\n21 silly get     'x-timer': 'S1457548567.568572,VS0,VE48' } ]\r\n22 verbose get saving codemirror to /Users/marc/.npm/registry.npmjs.org/codemirror/.cache.json\r\n23 verbose correctMkdir /Users/marc/.npm correctMkdir not in flight; initializing\r\n24 verbose makeDirectory /Users/marc/.npm creation not in flight; initializing\r\n25 silly makeDirectory /Users/marc/.npm uid: 501 gid: 20\r\n26 verbose stack TypeError: Invalid Version: 3.12.00\r\n26 verbose stack     at new SemVer (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:293:11)\r\n26 verbose stack     at SemVer.compare (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:342:13)\r\n26 verbose stack     at compare (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:566:31)\r\n26 verbose stack     at rcompare (/usr/local/lib/node_modules/npm/node_modules/semver/semver.js:576:10)\r\n26 verbose stack     at Array.sort (native)\r\n26 verbose stack     at pickVersionFromRegistryDocument (/usr/local/lib/node_modules/npm/lib/fetch-package-metadata.js:121:48)\r\n26 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/iferr/index.js:13:50\r\n26 verbose stack     at /usr/local/lib/node_modules/npm/lib/utils/pulse-till-done.js:19:8\r\n26 verbose stack     at saved (/usr/local/lib/node_modules/npm/lib/cache/caching-client.js:168:7)\r\n26 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:210:7\r\n27 verbose cwd /Users/marc/bude/test\r\n28 error Darwin 15.3.0\r\n29 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\" \"codemirror\"\r\n30 error node v5.8.0\r\n31 error npm  v3.7.3\r\n32 error Invalid Version: 3.12.00\r\n33 error If you need help, you may report this error at:\r\n33 error     <https://github.com/npm/npm/issues>\r\n34 verbose exit [ 1, true ]\r\n```\r\n\r\n\r\nAnyone an idea? Maybe another cache folder I can clear?"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/194453815","html_url":"https://github.com/npm/npm/issues/11835#issuecomment-194453815","issue_url":"https://api.github.com/repos/npm/npm/issues/11835","id":194453815,"user":{"login":"marcj","id":450980,"avatar_url":"https://avatars.githubusercontent.com/u/450980?v=3","gravatar_id":"","url":"https://api.github.com/users/marcj","html_url":"https://github.com/marcj","followers_url":"https://api.github.com/users/marcj/followers","following_url":"https://api.github.com/users/marcj/following{/other_user}","gists_url":"https://api.github.com/users/marcj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcj/subscriptions","organizations_url":"https://api.github.com/users/marcj/orgs","repos_url":"https://api.github.com/users/marcj/repos","events_url":"https://api.github.com/users/marcj/events{/privacy}","received_events_url":"https://api.github.com/users/marcj/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T19:02:38Z","updated_at":"2016-03-09T19:02:38Z","body":"Oh indeed, it works again. I wonder what the actual failure was? Is there a fallback someone can use in such cases?"}}