yarn 安装 qmarkdown 报 yarn 网络错误?

yarn 安装 qmarkdown 报 yarn 网络错误

想使用 quasar 的 qmarkdown https://qmarkdown.netlify.app/developing/using-qmarkdown

感觉用法很优雅

所以我参考 https://madewith.cn/649 使用 yarn 安装 qmarkdown

但是报错了,莫名其妙

─➤  yarn add @quasar/qmarkdown                                                                                                                                                                                                                         130 ↵
yarn add v1.22.21
[1/4] 🔍  Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

然后我参考 https://segmentfault.com/a/1190000040660323 设置了淘宝镜像,在安装更加不行了

╰─➤  yarn config set registry https://registry.npm.taobao.org                                                                                                                                                                                             1 ↵
yarn config v1.22.21
success Set "registry" to "https://registry.npm.taobao.org".
✨  Done in 0.02s.
─➤  yarn add @quasar/qmarkdown                              
yarn add v1.22.21
[1/4] 🔍  Resolving packages...
error Error: certificate has expired
    at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34)
    at TLSSocket.emit (node:events:513:28)
    at TLSSocket._finishInit (node:_tls_wrap:953:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

是因为不存在这个包,还是真的是网络问题?

图片.png

https://www.npmjs.com/search?q=qmarkdown


重新找了一个包:https://qmarkdown.netlify.app/all-about-qmarkdown/installatio...

安装还是报错

─➤  yarn add @quasar/quasar-ui-qmarkdown@next                                                                                                                                                                                                            1 ↵
yarn add v1.22.21
info No lockfile found.
[1/4] 🔍  Resolving packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error Error: read ECONNRESET
    at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

我按照 https://stackoverflow.com/questions/51508364/yarn-there-appears-to-be-trouble-with-your-network-connection-retrying 里面的把 yarn.lock 删除之后,重新执行 yarn add @quasar/quasar-ui-qmarkdown@next 还是一样的报错

阅读 1.2k
1 个回答

不应该是yarn add @quasar/quasar-ui-qmarkdown吗?

image.png

还有淘宝源更新了,现在为:https://registry.npmmirror.com/

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏