[vite] Internal server error: No known conditions for “./lib/locale/lang/zh-cn” entry in “element-plus” package
查了一堆东西,后来发现其主要原因在于npm镜像源的问题。以前调的为淘宝镜像。切换为官方镜像使用。
npm镜像源切换指令:
npm set registry https://registry.npm.taobao.org/
nrm use taobao
[vite] Internal server error: No known conditions for “./lib/locale/lang/zh-cn” entry in “element-plus” package
查了一堆东西,后来发现其主要原因在于npm镜像源的问题。以前调的为淘宝镜像。切换为官方镜像使用。
npm镜像源切换指令:
npm set registry https://registry.npm.taobao.org/
nrm use taobao