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:
curl https://registry.npmjs.org/@angular%2fcommon works fine
manually running npm install works fine
executing the same ./gradlew npmInstall on Linux works fine
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)
gradle npmInstall
fails in my setup:The error I get is the following:
However:
curl https://registry.npmjs.org/@angular%2fcommon
works finenpm install
works fine./gradlew npmInstall
on Linux works fineStack trace: