didi / chameleon

🦎 一套代码运行多端,一端所见即多端所见
http://cml.didi.cn/
Apache License 2.0
9.02k stars 693 forks source link

请求registry.npm.xiaojukeji.com 失败 #520

Open forget12345 opened 3 years ago

forget12345 commented 3 years ago

bug描述 描述出现的问题 请求通:http://registry.npm.xiaojukeji.com/circular-dependency-plugin/download/circular-dependency-plugin-4.4.0.tgz

复现bug的步骤

  1. 执行npm i -g chameleon-tool 2.问题 npm ERR! code ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! errno ENOTFOUND npm ERR! network request to http://registry.npm.xiaojukeji.com/circular-dependency-plugin/download/circular-dependency-plugin-4.4.0.tgz failed, reason: getaddrinfo ENOTFOUND registry.npm.xiaojukeji.com npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'

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

问题截图

编译环境信息

运行环境信息

fudx commented 3 years ago

使用cml 最好使用滴滴的源 你试试这个 npm set registry http://npm.intra.xiaojukeji.com

SolarTheCenter commented 3 years ago

更换成滴滴的源 npm set registry http://npm.intra.xiaojukeji.com 之后 再次安装直接报错(淘宝的源还会装一会儿包,然后报1楼那个错): npm i -g chameleon-tool npm ERR! code ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! errno ENOTFOUND npm ERR! network request to http://npm.intra.xiaojukeji.com/chameleon-tool failed, reason: getaddrinfo ENOTFOUND npm.intra.xiaojukeji.com npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'

SolarTheCenter commented 3 years ago

registry.npm.xiaojukeji.com npm.intra.xiaojukeji.com 这两个域名均无法解析,本地ping和网页端DNS查询,都没有对应的域名和解析地址

baismall1983 commented 3 years ago

请问这个问题有人有解决方法么?尝试独立安装 这个包circular-dependency-plugin-4.4.0,在安装这个工具也不行。