{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/16861","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/16861/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/16861/comments","events_url":"https://api.github.com/repos/npm/npm/issues/16861/events","html_url":"https://github.com/npm/npm/issues/16861","id":232810612,"number":16861,"title":"npm ERR! code EINTEGRITY (npm 5)","user":{"login":"alfiepoleon","id":14350051,"avatar_url":"https://avatars2.githubusercontent.com/u/14350051?v=4","gravatar_id":"","url":"https://api.github.com/users/alfiepoleon","html_url":"https://github.com/alfiepoleon","followers_url":"https://api.github.com/users/alfiepoleon/followers","following_url":"https://api.github.com/users/alfiepoleon/following{/other_user}","gists_url":"https://api.github.com/users/alfiepoleon/gists{/gist_id}","starred_url":"https://api.github.com/users/alfiepoleon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfiepoleon/subscriptions","organizations_url":"https://api.github.com/users/alfiepoleon/orgs","repos_url":"https://api.github.com/users/alfiepoleon/repos","events_url":"https://api.github.com/users/alfiepoleon/events{/privacy}","received_events_url":"https://api.github.com/users/alfiepoleon/received_events","type":"User","site_admin":false},"labels":[{"id":597514195,"url":"https://api.github.com/repos/npm/npm/labels/npm5","name":"npm5","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":53,"created_at":"2017-06-01T09:00:21Z","updated_at":"2017-09-09T01:00:46Z","closed_at":"2017-07-10T22:14:19Z","author_association":"NONE","body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is doing something I don't understand.\r\n\r\n#### What's going wrong?\r\nI deleted the node_modules and ran npm install, it won't finish installing. It throws the following error\r\n```bash\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: method-override@2.3.9 (node_modules/method-override):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/method-override-b32cdc2a/HISTORY.md'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: pegjs@0.10.0 (node_modules/pegjs):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/pegjs-727ccbb8/examples/javascript.pegjs'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: rebound@0.0.13 (node_modules/rebound):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, chmod '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/rebound-febeaca0/docs/public/fonts/aller-bold.ttf'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: array-includes@3.0.3 (node_modules/array-includes):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/array-includes-ba916eb0/polyfill.js'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@0.0.10 (node_modules/optimist/node_modules/minimist):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, chmod '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/minimist-01e15d57/test/dash.js'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: optimist@0.6.1 (node_modules/optimist):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/optimist-3fed5f8d/example/line_count.js'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: wordwrap@0.0.3 (node_modules/optimist/node_modules/wordwrap):\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: EEXIST: file already exists, mkdir '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/wordwrap-95e82b04/test'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: File exists: /Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/wordwrap-95e82b04/test\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: parse5@1.5.1 (node_modules/parse5):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/parse5-bbe9210b/lib/common/foreign_content.js'\r\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: escope@3.6.0 (node_modules/escope):\r\nnpm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/Users/alfie/Dev/Play/react-native/huh/node_modules/.staging/escope-fadd6a1e/lib/reference.js'\r\n\r\nnpm ERR! code EINTEGRITY\r\nnpm ERR! sha1-Ppz8p24IMzIm82W8+HD3ffvVQs0= integrity checksum failed when using sha1: wanted sha1-Ppz8p24IMzIm82W8+HD3ffvVQs0= but got sha1-Aw5ElVYJsWBoK0sZbA2EUFuTz1k=. (130549 bytes)\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     /Users/alfie/.npm/_logs/2017-06-01T08_44_41_142Z-debug.log\r\n```\r\n my `package.json`\r\n```js\r\n{\r\n\t\"name\": \"huh\",\r\n\t\"version\": \"0.0.1\",\r\n\t\"private\": true,\r\n\t\"scripts\": {\r\n\t\t\"start\": \"node node_modules/react-native/local-cli/cli.js start\",\r\n\t\t\"test\": \"jest\"\r\n\t},\r\n\t\"dependencies\": {\r\n\t\t\"lodash\": \"^4.17.4\",\r\n\t\t\"moment\": \"^2.18.1\",\r\n\t\t\"react\": \"16.0.0-alpha.6\",\r\n\t\t\"react-native\": \"0.44.0\",\r\n\t\t\"react-native-animatable\": \"^1.2.0\",\r\n\t\t\"react-native-img-cache\": \"^1.4.0\",\r\n\t\t\"react-native-navigation\": \"^1.1.79\",\r\n\t\t\"react-native-vector-icons\": \"^4.1.1\"\r\n\t},\r\n\t\"devDependencies\": {\r\n\t\t\"babel-eslint\": \"^7.2.3\",\r\n\t\t\"babel-jest\": \"20.0.3\",\r\n\t\t\"babel-preset-react-native\": \"1.9.2\",\r\n\t\t\"eslint\": \"^3.19.0\",\r\n\t\t\"eslint-config-airbnb\": \"^15.0.1\",\r\n\t\t\"eslint-plugin-import\": \"^2.3.0\",\r\n\t\t\"eslint-plugin-jsx-a11y\": \"^5.0.3\",\r\n\t\t\"eslint-plugin-react\": \"^7.0.1\",\r\n\t\t\"jest\": \"20.0.3\",\r\n\t\t\"react-test-renderer\": \"16.0.0-alpha.6\"\r\n\t},\r\n\t\"jest\": {\r\n\t\t\"preset\": \"react-native\"\r\n\t}\r\n}\r\n\r\n```\r\n#### How can the CLI team reproduce the problem?\r\nGet my package.json and run npm install\r\n\r\n<!--\r\n    Please a complete description of how to reproduce the problem.\r\n    Include a gist of your npm-debug.log file.\r\n    If you've never used gist.github.com, start here:\r\n      https://github.com/EmmaRamirez/how-to-submit-your-npm-debug-log\r\n-->\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints: 5.0.1\r\n - `node -v` prints: v7.10.0\r\n - `npm config get registry` prints: https://registry.npmjs.org/\r\n - Windows, OS X/macOS, or Linux?: macOS\r\n - Network issues:\r\n No proxy or VPN or container\r\n\r\n#### Gist\r\n[Here is the log gist](https://gist.github.com/alfiepoleon/127a42f0ff2e2e83d83a04f1016c7809)\r\n\r\n##### Edit:\r\n`yarn install` in the same directory installs the packages"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/328244231","html_url":"https://github.com/npm/npm/issues/16861#issuecomment-328244231","issue_url":"https://api.github.com/repos/npm/npm/issues/16861","id":328244231,"user":{"login":"mnzaki","id":834591,"avatar_url":"https://avatars3.githubusercontent.com/u/834591?v=4","gravatar_id":"","url":"https://api.github.com/users/mnzaki","html_url":"https://github.com/mnzaki","followers_url":"https://api.github.com/users/mnzaki/followers","following_url":"https://api.github.com/users/mnzaki/following{/other_user}","gists_url":"https://api.github.com/users/mnzaki/gists{/gist_id}","starred_url":"https://api.github.com/users/mnzaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnzaki/subscriptions","organizations_url":"https://api.github.com/users/mnzaki/orgs","repos_url":"https://api.github.com/users/mnzaki/repos","events_url":"https://api.github.com/users/mnzaki/events{/privacy}","received_events_url":"https://api.github.com/users/mnzaki/received_events","type":"User","site_admin":false},"created_at":"2017-09-09T01:00:46Z","updated_at":"2017-09-09T01:00:46Z","author_association":"NONE","body":"I got a lot of `npm ERR! code EINTEGRITY` errors doing a fresh install of a fairly large project, but it was happening in various packages. I then realized that npm was reporting the package sizes incorrectly.\r\n\r\nI just simply ran `npm install` over again multiple times until everything succeeded, I think it was just my bad internet connection. Perhaps npm should detect these errors by comparing the expected size and retrying a few times to continue the download?"}}
{"actor":{"display_login":"mnzaki"}}