getaddrinfo ENOTFOUND Registry.npmjs.org Registry.npmjs.org:443

时间:2019-12-09 18:29:42

标签: node.js angular npm-install

我正在金融公司网络中工作。尝试使用npm i mat-table-exporter或xlsx安装npm exporter模块,以在angular Material中使用导出按钮。但是我一次又一次地收到此错误。

  

npm错误!代码ENOTFOUND npm ERR! errno ENOTFOUND npm ERR!网络   对https://registry.npmjs.org/xlsx的请求失败,原因:getaddrinfo   ENOTFOUND Registry.npmjs.org Registry.npmjs.org:443 npm错误!网络   这是与网络连接有关的问题。 npm ERR!网络输入   大多数情况下,您使用代理服务器或网络设置不正确。

我尝试使用npm config edit检查配置-以下是详细信息-

  

;;;; ; npm userconfig文件;这是一个简单的ini格式的文件;   以分号开头的行是注释。 ;阅读npm help config以获得有关各种选项的帮助;;;;

     

strict-ssl = false ;;;; ;所有具有默认值的选项;;;; ;   access = null; allow-same-version = false; always-auth = false;也= null   ; auth-type = legacy; bin-links = true; browser = null; ca = null;   cafile = undefined; cache = C:\ Users \ username \ AppData \ Roaming \ npm-cache;   cache-lock-stale = 60000; cache-lock-retries = 10;缓存锁定等待= 10000   ; cache-max = null; cache-min = 10; cert = null; cidr = null; color = true;   depth = null; description = true; dev = false; dry-run = false;   editor = notepad.exe; engine-strict = false; force = false;   fetch-retries = 2; fetch-retry-factor = 10; fetch-retry-mintimeout = 10000   ; fetch-retry-maxtimeout = 60000; git = git; git-tag-version = true;   commit-hooks = true; global = false;   globalconfig = C:\ Users \用户名\ AppData \ Roaming \ npm \ etc \ npmrc;   global-style = false;组= 0; ham-it-up = false; heading = npm;   if-present = false; ignore-prepublish = false; ignore-scripts = false;   初始化模块= C:\ Users \ username.npm-init.js; init-author-name =;   init-author-email =; init-author-url =; init-version = 1.0.0;   init-license = ISC; json = false; key = null; legacy-bundling = false;   link = false; local-address = undefined; loglevel = notice; logs-max = 10;   long = false; maxsockets = 50;消息=%s; metrics-registry = null;   node-options = null; node-version = 8.11.3; offline = false;   onload-script = null; only = null; optional = true; otp = 0;   package-lock = true; package-lock-only = false; parseable = false;   preferred-offline = false; preferred-online = false;前缀= C:\ Program   Files \ nodejs; production = false; progress = true; proxy = null;   https-proxy = null; user-agent = npm / {npm-version}节点/ {node-version}   {platform} {arch};只读=假; rebuild-bundle = true;   注册表= https://registry.npmjs.org/; rollback = true; save = true;   save-bundle = false; save-dev = false; save-exact = false;   save-optional = false; save-prefix = ^; save-prod = false; scope =;   script-shell = null; scripts-prepend-node-path =只警告; searchopts =   ; searchexclude = null; searchlimit = 20; searchstaleness = 900

     

; send-metrics = false; shell = C:\ windows \ system32 \ cmd.exe;   收缩包装=真; sign-git-tag = false; sso-poll-frequency = 500;   sso-type = oauth; strict-ssl = true; tag = latest; tag-version-prefix = v;   Timing = false; tmp = C:\ Users \ username \ AppData \ Local \ Temp;   unicode = false; unsafe-perm = true; usage = false;用户= 0;   userconfig = C:\ Users \ username.npmrc; umask = 0; version = false;   版本=假; viewer =浏览器; _exit = true;   globalignorefile = C:\ Users \用户名\ AppData \ Roaming \ npm \ etc \ npmignore

我尝试了几次尝试,但都没有成功。感谢您的快速帮助

0 个答案:

没有答案