认清事物的本质-简单

博客园 首页 新随笔 联系 订阅 管理

使用 vite 创建项目

npm create vite@latest

命令行卡住了,一直没有反应。分析应该是网络访问卡住了,想到加速npm源的访问。

获取当前源

npm config get registry

# 返回默认的官方地址
#  https://registry.npmjs.org/  

修改国内为源

npm config set registry https://registry.npmmirror.com/

再次创建项目,秒开

posted on 2022-05-12 10:06  萧冲  阅读(214)  评论(0编辑  收藏  举报