yangjiakai / lux-ui

Create the best admin based on Vue3.x, Vite5.x, TypeScript, Vuetify3.x, Chat GPT
https://lux.vuetify3.com/
MIT License
611 stars 136 forks source link

可以docker-compose部署吗,npm部署出现如下问题 #13

Closed knigth95 closed 1 year ago

knigth95 commented 1 year ago

系统:ubuntu22 权限:root 执行 npm run dev后 error: file:///home/knight-oracle/zzm_bot/lux-admin-vuetify3/node_modules/vite/bin/vite.js:7 await import('source-map-support').then((r) => r.default.install()) ^^^^^

SyntaxError: Unexpected reserved word at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18) at async link (internal/modules/esm/module_job.js:42:21)

jaysunxiao commented 1 year ago

@knigth95 你的nodejs是什么版本?

knigth95 commented 1 year ago

@knigth95你的nodejs是什么版本?

v12.22.9

jaysunxiao commented 1 year ago

node版本过低,升级到最新的node

jaysunxiao commented 1 year ago

@knigth95你的nodejs是什么版本?

v12.22.9

升级node版本

hasakey commented 1 year ago

升级了也没用