registry.npmjs.org/ host is inaccessible -- are you offline?

What I Wanted to Do

When i try to install typescript getting below error, i have no issues with my internet connection. i’m trying from india.

Anglr_Learn\TSLearn>npm install -g typescript
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible – are you offline?
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:

What Happened Instead

Reproduction Steps

Details

Platform Info

$ npm --versions
arn\TSLearn>npm --versions
{ npm: ‘6.9.0’,
ares: ‘1.15.0’,
brotli: ‘1.0.7’,
cldr: ‘35.1’,
http_parser: ‘2.8.0’,
icu: ‘64.2’,
modules: ‘64’,
napi: ‘4’,
nghttp2: ‘1.34.0’,
node: ‘10.16.0’,
openssl: ‘1.1.1b’,
tz: ‘2019a’,
unicode: ‘12.1’,
uv: ‘1.28.0’,
v8: ‘6.8.275.32-node.52’,
zlib: ‘1.2.11’ }

$ node -p process.platform
win32

Do you have direct access to internet, or are you behind a proxy server?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.