本文主要是介绍npm install出现request to http://registry.cnpmjs.org/@mrmlnc%2freaddir-enhanced failed,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1、vscode中出现问题
问题描述:
npm ERR! request to https://registry.cnpmjs.org/@jeecg%2fantd-online-mini failed, reason: Hostname/IP does not match certificate’s altnames: Host: registry.cnpmjs.org. is not in the cert’s altnames: DNS:r.cnpmjs.org
2、解决方式
npm config set registry http://registry.npmjs.org
执行上面命令就可以了
3、在 npm install
这篇关于npm install出现request to http://registry.cnpmjs.org/@mrmlnc%2freaddir-enhanced failed的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!