bug描述
复现bug的步骤
- 执行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:
问题截图
编译环境信息
- chameleon-tool 版本:最新版本
- nodejs版本、npm版本:[node v15.8.0、npm 7.5.1]
- 电脑操作系统: [e.g. macOS big sur 11.2 (20D64)]
运行环境信息
4条答案
按热度按时间q35jwt9p1#
使用cml 最好使用滴滴的源 你试试这个
npm set registry http://npm.intra.xiaojukeji.com
zf9nrax12#
更换成滴滴的源
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'
3okqufwl3#
registry.npm.xiaojukeji.com
npm.intra.xiaojukeji.com
这两个域名均无法解析,本地ping和网页端DNS查询,都没有对应的域名和解析地址
6ioyuze24#
请问这个问题有人有解决方法么?尝试独立安装 这个包circular-dependency-plugin-4.4.0,在安装这个工具也不行。