{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node-gyp/issues/1020","repository_url":"https://api.github.com/repos/nodejs/node-gyp","labels_url":"https://api.github.com/repos/nodejs/node-gyp/issues/1020/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node-gyp/issues/1020/comments","events_url":"https://api.github.com/repos/nodejs/node-gyp/issues/1020/events","html_url":"https://github.com/nodejs/node-gyp/issues/1020","id":175030619,"number":1020,"title":"How do I stop node-gyp from trying to to download node-headers?","user":{"login":"salimfadhley","id":783193,"avatar_url":"https://avatars.githubusercontent.com/u/783193?v=3","gravatar_id":"","url":"https://api.github.com/users/salimfadhley","html_url":"https://github.com/salimfadhley","followers_url":"https://api.github.com/users/salimfadhley/followers","following_url":"https://api.github.com/users/salimfadhley/following{/other_user}","gists_url":"https://api.github.com/users/salimfadhley/gists{/gist_id}","starred_url":"https://api.github.com/users/salimfadhley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salimfadhley/subscriptions","organizations_url":"https://api.github.com/users/salimfadhley/orgs","repos_url":"https://api.github.com/users/salimfadhley/repos","events_url":"https://api.github.com/users/salimfadhley/events{/privacy}","received_events_url":"https://api.github.com/users/salimfadhley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-05T09:25:12Z","updated_at":"2016-09-05T10:53:37Z","closed_at":null,"body":"I'm trying (but failing) to install gulp-sass which (I believe) is a module that must be compiled with node-gyp. I suspect that the problems I'm getting stem from a misconfiguration of my gyp setup. I've also raised this as an issue on the gulp-sass issue tracker:\r\n\r\nhttps://github.com/dlmanning/gulp-sass/issues/530\r\n\r\nThe error seems to come quite close to the beginning of the process where it wants to get something from the Internet. Naturally this fails. \r\n\r\nI'm working behind a corporate firewall. There's absolutely no way I can allow desktop applications to connect to the outside world. It's banned here.\r\n\r\nIs there a work-around? For example, i could manually download the file that it's trying to install and then put it on this PC to prevent it hitting the Internet.\r\n\r\nI'm using Windows 7. \r\n\r\nWhenever I try to install gulp-sass I get the following error:\r\n\r\n```\r\nC:\\workspace\\CMOTStyles>npm install --save-dev gulp-sass\r\n\r\n> node-sass@3.9.0 install C:\\workspace\\CMOTStyles\\node_modules\\gulp-sass\\node_modules\\node-sass\r\n> node scripts/install.js\r\n\r\nStart downloading binary at https://github.com/sass/node-sass/releases/download/v3.9.0/win32-x64-48_binding.node\r\nCannot download \"https://github.com/sass/node-sass/releases/download/v3.9.0/win32-x64-48_binding.node\":\r\n\r\ngetaddrinfo ENOTFOUND github.com github.com:443\r\n\r\nHint: If github.com is not accessible in your location\r\n      try setting a proxy via HTTP_PROXY, e.g.\r\n\r\n      export HTTP_PROXY=http://example.com:1234\r\n\r\nor configure npm proxy via\r\n\r\n      npm config set proxy http://example.com:8080\r\n\r\n> node-sass@3.9.0 postinstall C:\\workspace\\CMOTStyles\\node_modules\\gulp-sass\\node_modules\\node-sass\r\n> node scripts/build.js\r\n\r\nBuilding: C:\\apps\\nodejs\\node.exe C:\\workspace\\CMOTStyles\\node_modules\\node-gyp\\bin\\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=\r\ngyp info it worked if it ends with ok\r\ngyp verb cli [ 'C:\\\\apps\\\\nodejs\\\\node.exe',\r\ngyp verb cli   'C:\\\\workspace\\\\CMOTStyles\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js',\r\ngyp verb cli   'rebuild',\r\ngyp verb cli   '--verbose',\r\ngyp verb cli   '--libsass_ext=',\r\ngyp verb cli   '--libsass_cflags=',\r\ngyp verb cli   '--libsass_ldflags=',\r\ngyp verb cli   '--libsass_library=' ]\r\ngyp info using node-gyp@3.4.0\r\ngyp info using node@6.2.0 | win32 | x64\r\ngyp verb command rebuild []\r\ngyp verb command clean []\r\ngyp verb clean removing \"build\" directory\r\ngyp verb command configure []\r\ngyp verb check python checking for Python executable \"python2\" in the PATH\r\ngyp verb `which` failed Error: not found: python2\r\ngyp verb `which` failed     at getNotFoundError (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:14:12)\r\ngyp verb `which` failed     at F (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:69:19)\r\ngyp verb `which` failed     at E (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:81:29)\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:90:16\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\index.js:44:5\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\windows.js:29:5\r\ngyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:117:15)\r\ngyp verb `which` failed  python2 { Error: not found: python2\r\ngyp verb `which` failed     at getNotFoundError (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:14:12)\r\ngyp verb `which` failed     at F (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:69:19)\r\ngyp verb `which` failed     at E (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:81:29)\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:90:16\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\index.js:44:5\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\windows.js:29:5\r\ngyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:117:15) code: 'ENOENT' }\r\ngyp verb check python checking for Python executable \"python\" in the PATH\r\ngyp verb `which` failed Error: not found: python\r\ngyp verb `which` failed     at getNotFoundError (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:14:12)\r\ngyp verb `which` failed     at F (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:69:19)\r\ngyp verb `which` failed     at E (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:81:29)\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:90:16\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\index.js:44:5\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\windows.js:29:5\r\ngyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:117:15)\r\ngyp verb `which` failed  python { Error: not found: python\r\ngyp verb `which` failed     at getNotFoundError (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:14:12)\r\ngyp verb `which` failed     at F (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:69:19)\r\ngyp verb `which` failed     at E (C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:81:29)\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\which\\which.js:90:16\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\index.js:44:5\r\ngyp verb `which` failed     at C:\\workspace\\CMOTStyles\\node_modules\\isexe\\windows.js:29:5\r\ngyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:117:15) code: 'ENOENT' }\r\ngyp verb could not find \"python\". checking python launcher\r\ngyp verb check python launcher python executable found: \"C:\\\\Python27\\\\python.exe\"\r\ngyp verb check python version `C:\\Python27\\python.exe -c \"import platform; print(platform.python_version());\"` returned: \"2.7.10\\r\\n\"\r\ngyp verb get node dir no --target version specified, falling back to host node version: 6.2.0\r\ngyp verb command install [ '6.2.0' ]\r\ngyp verb install input version string \"6.2.0\"\r\ngyp verb install installing version: 6.2.0\r\ngyp verb install --ensure was passed, so won't reinstall if already installed\r\ngyp verb install version not already installed, continuing with install 6.2.0\r\ngyp verb ensuring nodedir is created C:\\Users\\NBKA0O5\\.node-gyp\\6.2.0\r\ngyp verb created nodedir C:\\Users\\NBKA0O5\\.node-gyp\\6.2.0\r\ngyp http GET https://nodejs.org/download/release/v6.2.0/node-v6.2.0-headers.tar.gz\r\ngyp WARN install got an error, rolling back install\r\ngyp verb command remove [ '6.2.0' ]\r\ngyp verb remove using node-gyp dir: C:\\Users\\NBKA0O5\\.node-gyp\r\ngyp verb remove removing target version: 6.2.0\r\ngyp verb remove removing development files for version: 6.2.0\r\ngyp ERR! configure error\r\ngyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and\r\ngyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad\r\ngyp ERR! stack network settings.\r\ngyp ERR! stack     at Request.<anonymous> (C:\\workspace\\CMOTStyles\\node_modules\\node-gyp\\lib\\install.js:193:21)\r\ngyp ERR! stack     at emitOne (events.js:96:13)\r\ngyp ERR! stack     at Request.emit (events.js:188:7)\r\ngyp ERR! stack     at Request.onRequestError (C:\\workspace\\CMOTStyles\\node_modules\\request\\request.js:813:8)\r\ngyp ERR! stack     at emitOne (events.js:96:13)\r\ngyp ERR! stack     at ClientRequest.emit (events.js:188:7)\r\ngyp ERR! stack     at TLSSocket.socketErrorListener (_http_client.js:306:9)\r\ngyp ERR! stack     at emitOne (events.js:96:13)\r\ngyp ERR! stack     at TLSSocket.emit (events.js:188:7)\r\ngyp ERR! stack     at connectErrorNT (net.js:1015:8)\r\ngyp ERR! System Windows_NT 6.1.7601\r\ngyp ERR! command \"C:\\\\apps\\\\nodejs\\\\node.exe\" \"C:\\\\workspace\\\\CMOTStyles\\\\node_modules\\\\node-gyp\\\\bin\\\\node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"\r\ngyp ERR! cwd C:\\workspace\\CMOTStyles\\node_modules\\gulp-sass\\node_modules\\node-sass\r\ngyp ERR! node -v v6.2.0\r\ngyp ERR! node-gyp -v v3.4.0\r\ngyp ERR! not ok\r\nBuild failed\r\nnpm WARN enoent ENOENT: no such file or directory, open 'C:\\workspace\\CMOTStyles\\node_modules\\node-sass\\package.json'\r\nnpm WARN gulp-jshint@2.0.1 requires a peer of jshint@2.x but none was installed.\r\nnpm WARN gmot_styles@0.0.1 license should be a valid SPDX license expression\r\nnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"C:\\\\apps\\\\nodejs\\\\node.exe\" \"C:\\\\Users\\\\NBKA0O5\\\\AppData\\\\Roaming\\\\npm\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"--save-dev\" \"gulp-sass\"\r\nnpm ERR! node v6.2.0\r\nnpm ERR! npm  v3.10.6\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! node-sass@3.9.0 postinstall: `node scripts/build.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the node-sass@3.9.0 postinstall script 'node scripts/build.js'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the node-sass package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node scripts/build.js\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs node-sass\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls node-sass\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\workspace\\CMOTStyles\\npm-debug.log\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/nodejs/node-gyp/issues/comments/244718826","html_url":"https://github.com/nodejs/node-gyp/issues/1020#issuecomment-244718826","issue_url":"https://api.github.com/repos/nodejs/node-gyp/issues/1020","id":244718826,"user":{"login":"bnoordhuis","id":275871,"avatar_url":"https://avatars.githubusercontent.com/u/275871?v=3","gravatar_id":"","url":"https://api.github.com/users/bnoordhuis","html_url":"https://github.com/bnoordhuis","followers_url":"https://api.github.com/users/bnoordhuis/followers","following_url":"https://api.github.com/users/bnoordhuis/following{/other_user}","gists_url":"https://api.github.com/users/bnoordhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/bnoordhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnoordhuis/subscriptions","organizations_url":"https://api.github.com/users/bnoordhuis/orgs","repos_url":"https://api.github.com/users/bnoordhuis/repos","events_url":"https://api.github.com/users/bnoordhuis/events{/privacy}","received_events_url":"https://api.github.com/users/bnoordhuis/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T10:53:37Z","updated_at":"2016-09-05T10:53:37Z","body":"You can use the --tarball or --nodedir switches if you don't want to or can't download the SDK directly.  The second switch is for when you have a node source checkout on disk somewhere."}}
{"actor":{"display_login":"bnoordhuis"}}