Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Npm Error: 503 Service Unavailable for npm install command

Tags:

node.js

npm

Im trying to run npm install command but i got this error Error: 503 Service Unavailable for npm install command, Can any one please im requesting you to solve this one.

This is actual complete error im getting on error log file

3413 verbose stack Error: 503 Service Unavailable - GET http://52.169.74.37:8081/repository/npm-private/@ctc%2fctc-pubsub-common
3413 verbose stack     at res.buffer.catch.then.body (C:\node\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:104:15)
3413 verbose stack     at process._tickCallback (internal/process/next_tick.js:68:7)
3414 verbose statusCode 503
3415 verbose pkgid @ctc/ctc-pubsub-common@^1.0.5
3416 verbose cwd C:\Users\vktest\pro
3417 verbose Windows_NT 10.0.15063
3418 verbose argv "C:\\node\\node.exe" "C:\\node\\node_modules\\npm\\bin\\npm-cli.js" "install"
3419 verbose node v10.16.3
3420 verbose npm  v6.9.0
3421 error code E503
3422 error 503 Service Unavailable - GET http://52.169.74.37:8081/repository/npm-private/@ctc%2fctc-pubsub-common
3423 verbose exit [ 1, true ]
like image 847
venu kumar Avatar asked Sep 13 '19 12:09

venu kumar


1 Answers

Seems like your npm registry config pointing to some private registry that is down or unavailable.

Try to check npm configuration :

npm config get registry

It should be like :

 http://52.169.74.37:8081

So update the config which will point to offical registry.

 npm config set registry https://registry.npmjs.com/

like image 198
Adiii Avatar answered Sep 20 '22 02:09

Adiii