node scripts/install.js not working behind proxy
flopes89 opened this issue · 3 comments
flopes89 commented
Environment:
- Windows 7x64
- HTTP_PROXY and HTTPS_PROXY environment variabes are set and confirmed to work with npm
- node 4.5.0
$ npm version
{ npm: '4.4.1',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '56.1',
modules: '46',
node: '4.5.0',
openssl: '1.0.2h',
uv: '1.9.1',
v8: '4.5.103.37',
zlib: '1.2.8' }
package.json file
{
"devDependencies": {
"nw": "^0.21.3",
"nw-builder": "^3.2.0"
}
}
Error message:
> nw@0.21.3 postinstall e:\tmp\nw-testarea\node_modules\nw
> node scripts/install.js
tunneling socket could not be established, statusCode=403
npm WARN nw-testarea No description
npm WARN nw-testarea No repository field.
npm WARN nw-testarea No license field.
npm WARN Error: EPERM: operation not permitted, scandir 'e:\tmp\nw-testarea\node_modules\parse-glob\node_modules'
npm WARN at Error (native)
npm WARN { [Error: EPERM: operation not permitted, scandir 'e:\tmp\nw-testarea\node_modules\parse-glob\node_modules']
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'scandir',
npm WARN path: 'e:\\tmp\\nw-testarea\\node_modules\\parse-glob\\node_modules' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nw@0.21.3 postinstall: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nw@0.21.3 postinstall script 'node scripts/install.js'.
Apparently this was initially reported as #12 and #15 and fixed with #16, but then regressed by #45
Mithgol commented