npm install is failing for me
jasikpark opened this issue · comments
Currently debugging running npm install
after cloning this project - I'm not sure what this error is:
gitpod /workspace/prettier-plugin-go-template (master) $ npm i
npm ERR! code ECONNREFUSED
npm ERR! syscall connect
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to http://localhost:4873/@types%2fprettier/-/prettier-2.2.3.tgz failed, reason: connect ECONNREFUSED 127.0.0.1:4873
npm ERR! at ClientRequest.<anonymous> (/home/gitpod/.nvm/versions/node/v16.13.2/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:110:14)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at Socket.socketErrorListener (node:_http_client:447:9)
npm ERR! at Socket.emit (node:events:402:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! FetchError: request to http://localhost:4873/@types%2fprettier/-/prettier-2.2.3.tgz failed, reason: connect ECONNREFUSED 127.0.0.1:4873
npm ERR! at ClientRequest.<anonymous> (/home/gitpod/.nvm/versions/node/v16.13.2/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:110:14)
npm ERR! at ClientRequest.emit (node:events:390:28)
npm ERR! at Socket.socketErrorListener (node:_http_client:447:9)
npm ERR! at Socket.emit (node:events:402:35)
npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR! code: 'ECONNREFUSED',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '127.0.0.1',
npm ERR! port: 4873,
npm ERR! type: 'system'
npm ERR! }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/gitpod/.npm/_logs/2022-03-05T21_07_03_751Z-debug.log
Looks like your .npmrc config is pointing to a local registry. Atleast npm is trying to access the packages from localhost.
And it also looks like the local registry is not running.
That's what it sounds like... but I haven't setup an .npmrc
for this repo, and that's a run on a fresh https://gitpod.io machine cloned from this repo :/
After testing agan this still fails on a fresh gitpod machine... I'm not sure why it's erroring for me exactly
Very weird, I just reinstalled all dependencies yesterday evening and it went without any problems.I'm using Node 16.
I also have no local registry running or anything.
thanks a lot for sorting that out!