{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/15174","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/15174/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/15174/comments","events_url":"https://api.github.com/repos/npm/npm/issues/15174/events","html_url":"https://github.com/npm/npm/issues/15174","id":194340369,"number":15174,"title":"does install script trigger for a dependency ?","user":{"login":"mh-cbon","id":17096799,"avatar_url":"https://avatars.githubusercontent.com/u/17096799?v=3","gravatar_id":"","url":"https://api.github.com/users/mh-cbon","html_url":"https://github.com/mh-cbon","followers_url":"https://api.github.com/users/mh-cbon/followers","following_url":"https://api.github.com/users/mh-cbon/following{/other_user}","gists_url":"https://api.github.com/users/mh-cbon/gists{/gist_id}","starred_url":"https://api.github.com/users/mh-cbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mh-cbon/subscriptions","organizations_url":"https://api.github.com/users/mh-cbon/orgs","repos_url":"https://api.github.com/users/mh-cbon/repos","events_url":"https://api.github.com/users/mh-cbon/events{/privacy}","received_events_url":"https://api.github.com/users/mh-cbon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T13:49:21Z","updated_at":"2016-12-08T14:02:52Z","closed_at":"2016-12-08T14:02:52Z","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  - [ 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\nI have setup `node-sass` as a dependency of [my project](https://github.com/mh-cbon/material-design-lite/blob/mdl-1.x/package.json). `node-sass` defines an [install script](https://github.com/sass/node-sass/blob/master/package.json) to download a binary.\r\n\r\nWhen i run `npm i`, `node-sass` install script will not run, leading to a corrupted install.\r\n\r\nAn additional `npm i node-sass` command is required to fix it (note the lack of version).\r\n\r\nIf i read [the documentation](https://docs.npmjs.com/misc/scripts) appropriately, the expected behavior is not clear to me.\r\n\r\n#### How can the CLI team reproduce the problem?\r\n\r\n```sh\r\ngit clone https://github.com/mh-cbon/material-design-lite.git\r\ncd material-design-lite\r\nnpm i\r\n./node_modules/.bin/gulp default # will bug with a message such\r\n\r\nMessage:\r\n    ENOENT: no such file or directory, scandir '/home/mh-cbon/projects/material-design-lite/node_modules/node-sass/vendor'\r\nDetails:\r\n    errno: -2\r\n    code: ENOENT\r\n    syscall: scandir\r\n    path: /home/mh-cbon/projects/material-design-lite/node_modules/node-sass/vendor\r\n\r\n\r\n```\r\n\r\n### supporting information:\r\n\r\n```sh\r\n[mh-cbon@pc15-home material-design-lite] $ npm -v\r\n3.3.7\r\n[mh-cbon@pc15-home material-design-lite] $ node -v\r\nv5.0.0\r\n[mh-cbon@pc15-home material-design-lite] $ uname -a\r\nLinux pc15-home 4.8.11-300.fc25.x86_64 #1 SMP Mon Nov 28 18:24:51 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n - `npm -v` prints:\r\n - `node -v` prints:\r\n - `npm config get registry` prints:\r\n - Windows, OS X/macOS, or Linux?:\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   - [ ] 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"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/265746648","html_url":"https://github.com/npm/npm/issues/15174#issuecomment-265746648","issue_url":"https://api.github.com/repos/npm/npm/issues/15174","id":265746648,"user":{"login":"mh-cbon","id":17096799,"avatar_url":"https://avatars.githubusercontent.com/u/17096799?v=3","gravatar_id":"","url":"https://api.github.com/users/mh-cbon","html_url":"https://github.com/mh-cbon","followers_url":"https://api.github.com/users/mh-cbon/followers","following_url":"https://api.github.com/users/mh-cbon/following{/other_user}","gists_url":"https://api.github.com/users/mh-cbon/gists{/gist_id}","starred_url":"https://api.github.com/users/mh-cbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mh-cbon/subscriptions","organizations_url":"https://api.github.com/users/mh-cbon/orgs","repos_url":"https://api.github.com/users/mh-cbon/repos","events_url":"https://api.github.com/users/mh-cbon/events{/privacy}","received_events_url":"https://api.github.com/users/mh-cbon/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T14:02:52Z","updated_at":"2016-12-08T14:02:52Z","body":"figured out latest stable was not having the issue.."}}
{"actor":{"display_login":"mh-cbon"}}