国内镜像安装robotjs

nodejs 文章 2021-09-03 16:37 572 0 全屏看文

AI助手支持GPT4.0

如果遇到下面的问题,则需要安装国内镜像的

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t https://github.com/Toinane/robotjs.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/Toinane/robotjs.git/': OpenSSL SSL_read: Connection was aborted
npm ERR!
npm ERR! exited with error code: 128

安装脚本:

npm install -g robotjs --registry="https://registry.npm.taobao.org"


-EOF-

AI助手支持GPT4.0