{"action":"closed","issue":{"url":"https://api.github.com/repos/npm/npm/issues/14626","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/14626/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/14626/comments","events_url":"https://api.github.com/repos/npm/npm/issues/14626/events","html_url":"https://github.com/npm/npm/issues/14626","id":189235298,"number":14626,"title":"npm install shasum mismatch","user":{"login":"branpar","id":16673275,"avatar_url":"https://avatars.githubusercontent.com/u/16673275?v=3","gravatar_id":"","url":"https://api.github.com/users/branpar","html_url":"https://github.com/branpar","followers_url":"https://api.github.com/users/branpar/followers","following_url":"https://api.github.com/users/branpar/following{/other_user}","gists_url":"https://api.github.com/users/branpar/gists{/gist_id}","starred_url":"https://api.github.com/users/branpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/branpar/subscriptions","organizations_url":"https://api.github.com/users/branpar/orgs","repos_url":"https://api.github.com/users/branpar/repos","events_url":"https://api.github.com/users/branpar/events{/privacy}","received_events_url":"https://api.github.com/users/branpar/received_events","type":"User","site_admin":false},"labels":[{"id":262254667,"url":"https://api.github.com/repos/npm/npm/labels/big-bug","name":"big-bug","color":"E03C28","default":false},{"id":41616,"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"A328B3","default":true},{"id":130331082,"url":"https://api.github.com/repos/npm/npm/labels/shasum","name":"shasum","color":"211640","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-11-14T21:46:04Z","updated_at":"2016-12-16T01:54:40Z","closed_at":"2016-12-16T01:54:40Z","body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is crashing.\r\n  - [x] npm is producing an incorrect install.\r\n  - [ ] 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\nI am attempting to do an `npm install` both locally and on my companies' build servers and am receiving errors. The `package.json`, configuration, etc have not changed in months. This issue is new as of today and is preventing our builds from being able to release. I have performed many `npm cache clear` commands and have not had success with this.\r\n\r\n#### How can the CLI team reproduce the problem?\r\nPerform an `npm install`. I had upgraded my version of npm in an attempt to solve this issue and downgrading with `npm install npm@3.10.3 -g` results in a shasum mismatch error also.\r\n\r\nConsole error:\r\n```\r\nnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\branpar\\\\AppData\\\\Roaming\\\\npm\\\\node\r\n_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"npm@3.10.3\" \"-g\"\r\nnpm ERR! node v6.6.0\r\nnpm ERR! npm  v3.10.9\r\n\r\nnpm ERR! shasum check failed for C:\\Users\\branpar\\AppData\\Local\\Temp\\npm-41296-d369ebbb\\registry.npm\r\njs.org\\npm\\-\\npm-3.10.3.tgz\r\nnpm ERR! Expected: 2b4ec25e4135ae17b72c9cd6a1b4dfd93bb4466c\r\nnpm ERR! Actual:   68113f2ba7acfc9419979306d3e6bdbac5ea5bd3\r\nnpm ERR! From:     https://registry.npmjs.org/npm/-/npm-3.10.3.tgz\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\n\r\nnpm-debug.log:\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ 'C:\\\\Program Files\\\\nodejs\\\\node.exe',\r\n1 verbose cli   'C:\\\\Users\\\\branpar\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js',\r\n1 verbose cli   'install',\r\n1 verbose cli   'npm@3.10.3',\r\n1 verbose cli   '-g' ]\r\n2 info using npm@3.10.9\r\n3 info using node@v6.6.0\r\n4 silly loadCurrentTree Starting\r\n5 silly install loadCurrentTree\r\n6 silly install readGlobalPackageData\r\n7 silly fetchPackageMetaData npm@3.10.3\r\n8 silly fetchNamedPackageData npm\r\n9 silly mapToRegistry name npm\r\n10 silly mapToRegistry using default registry\r\n11 silly mapToRegistry registry https://registry.npmjs.org/\r\n12 silly mapToRegistry data Result {\r\n12 silly mapToRegistry   raw: 'npm',\r\n12 silly mapToRegistry   scope: null,\r\n12 silly mapToRegistry   escapedName: 'npm',\r\n12 silly mapToRegistry   name: 'npm',\r\n12 silly mapToRegistry   rawSpec: '',\r\n12 silly mapToRegistry   spec: 'latest',\r\n12 silly mapToRegistry   type: 'tag' }\r\n13 silly mapToRegistry uri https://registry.npmjs.org/npm\r\n14 verbose request uri https://registry.npmjs.org/npm\r\n15 verbose request no auth needed\r\n16 info attempt registry request try #1 at 3:41:49 PM\r\n17 verbose request id b8fe8b134b58cfef\r\n18 verbose etag W/\"581d3475-58a01b\"\r\n19 verbose lastModified Sat, 05 Nov 2016 01:23:01 GMT\r\n20 http request GET https://registry.npmjs.org/npm\r\n21 http 304 https://registry.npmjs.org/npm\r\n22 verbose headers { date: 'Mon, 14 Nov 2016 21:41:49 GMT',\r\n22 verbose headers   via: '1.1 varnish',\r\n22 verbose headers   'cache-control': 'max-age=300',\r\n22 verbose headers   etag: 'W/\"581d3475-58a01b\"',\r\n22 verbose headers   age: '83',\r\n22 verbose headers   connection: 'keep-alive',\r\n22 verbose headers   'x-served-by': 'cache-ord1735-ORD',\r\n22 verbose headers   'x-cache': 'HIT',\r\n22 verbose headers   'x-cache-hits': '2',\r\n22 verbose headers   'x-timer': 'S1479159709.220483,VS0,VE0',\r\n22 verbose headers   vary: 'Accept-Encoding' }\r\n23 silly get cb [ 304,\r\n23 silly get   { date: 'Mon, 14 Nov 2016 21:41:49 GMT',\r\n23 silly get     via: '1.1 varnish',\r\n23 silly get     'cache-control': 'max-age=300',\r\n23 silly get     etag: 'W/\"581d3475-58a01b\"',\r\n23 silly get     age: '83',\r\n23 silly get     connection: 'keep-alive',\r\n23 silly get     'x-served-by': 'cache-ord1735-ORD',\r\n23 silly get     'x-cache': 'HIT',\r\n23 silly get     'x-cache-hits': '2',\r\n23 silly get     'x-timer': 'S1479159709.220483,VS0,VE0',\r\n23 silly get     vary: 'Accept-Encoding' } ]\r\n24 verbose etag https://registry.npmjs.org/npm from cache\r\n25 verbose get saving npm to C:\\Users\\branpar\\AppData\\Roaming\\npm-cache\\registry.npmjs.org\\npm\\.cache.json\r\n26 verbose correctMkdir C:\\Users\\branpar\\AppData\\Roaming\\npm-cache correctMkdir not in flight; initializing\r\n27 silly install normalizeTree\r\n28 silly loadCurrentTree Finishing\r\n29 silly loadIdealTree Starting\r\n30 silly install loadIdealTree\r\n31 silly cloneCurrentTree Starting\r\n32 silly install cloneCurrentTreeToIdealTree\r\n33 silly cloneCurrentTree Finishing\r\n34 silly loadShrinkwrap Starting\r\n35 silly install loadShrinkwrap\r\n36 silly loadShrinkwrap Finishing\r\n37 silly loadAllDepsIntoIdealTree Starting\r\n38 silly install loadAllDepsIntoIdealTree\r\n39 silly resolveWithNewModule npm@3.10.3 checking installable status\r\n40 silly cache add args [ 'npm@3.10.3', null ]\r\n41 verbose cache add spec npm@3.10.3\r\n42 silly cache add parsed spec Result {\r\n42 silly cache add   raw: 'npm@3.10.3',\r\n42 silly cache add   scope: null,\r\n42 silly cache add   escapedName: 'npm',\r\n42 silly cache add   name: 'npm',\r\n42 silly cache add   rawSpec: '3.10.3',\r\n42 silly cache add   spec: '3.10.3',\r\n42 silly cache add   type: 'version' }\r\n43 silly addNamed npm@3.10.3\r\n44 verbose addNamed \"3.10.3\" is a plain semver version for npm\r\n45 silly mapToRegistry name npm\r\n46 silly mapToRegistry using default registry\r\n47 silly mapToRegistry registry https://registry.npmjs.org/\r\n48 silly mapToRegistry data Result {\r\n48 silly mapToRegistry   raw: 'npm',\r\n48 silly mapToRegistry   scope: null,\r\n48 silly mapToRegistry   escapedName: 'npm',\r\n48 silly mapToRegistry   name: 'npm',\r\n48 silly mapToRegistry   rawSpec: '',\r\n48 silly mapToRegistry   spec: 'latest',\r\n48 silly mapToRegistry   type: 'tag' }\r\n49 silly mapToRegistry uri https://registry.npmjs.org/npm\r\n50 verbose addNameVersion registry:https://registry.npmjs.org/npm not in flight; fetching\r\n51 verbose get https://registry.npmjs.org/npm not expired, no request\r\n52 silly mapToRegistry name npm\r\n53 silly mapToRegistry using default registry\r\n54 silly mapToRegistry registry https://registry.npmjs.org/\r\n55 silly mapToRegistry data Result {\r\n55 silly mapToRegistry   raw: 'npm',\r\n55 silly mapToRegistry   scope: null,\r\n55 silly mapToRegistry   escapedName: 'npm',\r\n55 silly mapToRegistry   name: 'npm',\r\n55 silly mapToRegistry   rawSpec: '',\r\n55 silly mapToRegistry   spec: 'latest',\r\n55 silly mapToRegistry   type: 'tag' }\r\n56 silly mapToRegistry uri https://registry.npmjs.org/npm\r\n57 verbose addRemoteTarball https://registry.npmjs.org/npm/-/npm-3.10.3.tgz not in flight; adding\r\n58 verbose addRemoteTarball [ 'https://registry.npmjs.org/npm/-/npm-3.10.3.tgz',\r\n58 verbose addRemoteTarball   '2b4ec25e4135ae17b72c9cd6a1b4dfd93bb4466c' ]\r\n59 info retry fetch attempt 1 at 3:41:50 PM\r\n60 info attempt registry request try #1 at 3:41:50 PM\r\n61 http fetch GET https://registry.npmjs.org/npm/-/npm-3.10.3.tgz\r\n62 http fetch 200 https://registry.npmjs.org/npm/-/npm-3.10.3.tgz\r\n63 info retry will retry, error on last attempt: Error: read ECONNRESET\r\n64 silly fetchAndShaCheck shasum 2b4ec25e4135ae17b72c9cd6a1b4dfd93bb4466c\r\n65 silly rollbackFailedOptional Starting\r\n66 silly rollbackFailedOptional Finishing\r\n67 silly runTopLevelLifecycles Finishing\r\n68 silly install printInstalled\r\n69 verbose stack Error: shasum check failed for C:\\Users\\branpar\\AppData\\Local\\Temp\\npm-41296-d369ebbb\\registry.npmjs.org\\npm\\-\\npm-3.10.3.tgz\r\n69 verbose stack Expected: 2b4ec25e4135ae17b72c9cd6a1b4dfd93bb4466c\r\n69 verbose stack Actual:   68113f2ba7acfc9419979306d3e6bdbac5ea5bd3\r\n69 verbose stack From:     https://registry.npmjs.org/npm/-/npm-3.10.3.tgz\r\n69 verbose stack     at C:\\Users\\branpar\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\sha\\index.js:25:8\r\n69 verbose stack     at ReadStream.<anonymous> (C:\\Users\\branpar\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\sha\\index.js:72:7)\r\n69 verbose stack     at emitNone (events.js:91:20)\r\n69 verbose stack     at ReadStream.emit (events.js:185:7)\r\n69 verbose stack     at endReadableNT (_stream_readable.js:974:12)\r\n69 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n69 verbose stack     at process._tickCallback (internal/process/next_tick.js:98:9)\r\n70 verbose cwd C:\\WebTeam1\\CDN\\search\r\n71 error Windows_NT 6.1.7601\r\n72 error argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\branpar\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"npm@3.10.3\" \"-g\"\r\n73 error node v6.6.0\r\n74 error npm  v3.10.9\r\n75 error shasum check failed for C:\\Users\\branpar\\AppData\\Local\\Temp\\npm-41296-d369ebbb\\registry.npmjs.org\\npm\\-\\npm-3.10.3.tgz\r\n75 error Expected: 2b4ec25e4135ae17b72c9cd6a1b4dfd93bb4466c\r\n75 error Actual:   68113f2ba7acfc9419979306d3e6bdbac5ea5bd3\r\n75 error From:     https://registry.npmjs.org/npm/-/npm-3.10.3.tgz\r\n76 error If you need help, you may report this error at:\r\n76 error     <https://github.com/npm/npm/issues>\r\n77 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: v6.6.0\r\n - `npm config get registry` prints: https://registry.npmjs.org\r\n - Windows, OS X/macOS, or Linux?: Windows 7 Enterprise\r\n - Network issues:\r\n   - Geographic location where npm was run: Chicago, IL\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   - [ ] 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   - [ ] 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"}}
{"actor":{"display_login":"iarna"}}