赞
踩
查看当前镜像: npm config get registry 如果不是淘宝的,更换为淘宝镜像。更换镜像: npm config set registry https://registry.npm.taobao.org
npm config get registry
npm config set registry https://registry.npm.taobao.org
再次运行安装 serve 工具命令:npm i -g serve ,几秒钟就安装好了!