srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
867 stars 210 forks source link

npmInstall failing on Mac OS X 10.11.6 #332

Open victorcombalweiss opened 5 years ago

victorcombalweiss commented 5 years ago

gradle npmInstall fails in my setup:

node {
    version = '10.15.3'
    npmVersion = '6.9.0'
    download = true
}

The error I get is the following:

npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/@angular%2fcommon failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'

However:

Stack trace:

verbose stack at ClientRequest.req.on.err (/Users/victorcombalweissx/Documents/datapuppy/frontend/.gradle/npm/npm-v6.9.0/lib/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14) 41 verbose stack at ClientRequest.emit (events.js:189:13) 41 verbose stack at TLSSocket.socketErrorListener (_http_client.js:392:9) 41 verbose stack at TLSSocket.emit (events.js:189:13) 41 verbose stack at emitErrorNT (internal/streams/destroy.js:82:8) 41 verbose stack at emitErrorAndCloseNT (internal/streams/destroy.js:50:3) 41 verbose stack at process._tickCallback (internal/process/next_tick.js:63:19)