1、问题概述?
在运行较老的vue项目的时候,需要先执行npm install命令,进行初始化,这时候报错如下:
478 verbose Windows_NT 10.0.19045
479 verbose node v16.18.0
480 verbose npm v8.19.2
481 error code ENOTFOUND
482 error syscall getaddrinfo
483 error errno ENOTFOUND
484 error network request to https://registry.nlark.com/throttle-debounce/download/throttle-debounce-3.0.1.tgz failed, reason: getaddrinfo ENOTFOUND registry.nlark.com
485 error network This is a problem related to network connectivity.
485 error network In most cases you are behind a proxy or have bad network settings.
485 error network
485 error network If you are behind a proxy, please make sure that the
485 error network 'proxy' config is set properly. See: 'npm help config'
问题的核心:通过registry.nlark.com去下载资源的时