Notice: 函数 WP_Scripts::localize 的调用方法不正确$l10n 参数必须是一个数组。若要将任意数据传递给脚本,请改用 wp_add_inline_script() 函数。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 5.7.0 版本添加的。) in /data/www/appblog/wp-includes/functions.php on line 6131

git协议 unable to connect to github.com

错误信息

$ bower install jquery
...

npm ERR! Error while executing: 
npm ERR! D:\Program Files\git\cmd\git.exe ls-remote -h -t
git://github.com/adobe-webplatform/eve.git
npm ERR! 
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0:13.250.177.223]: errno=No such file or directory
npm ERR! 
npm ERR! 
npm ERR! exited with error code: 128

npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR! 
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 52.74.223.119]: errno=Connection refused
npm ERR! 
npm ERR! 
npm ERR! exited with error code: 128

解决方法

原因:需要用https才能读到数据

解决方法:

git config --global url.https://.insteadof=git://
上一篇 在线MP4转Gif
下一篇 在UltraEdit、Notepad++、EmEditor中使用正则表达式替换将字符串中的小写转换成大写