nuxt/cli

Nuxi command report error in Linux

Closed this issue · 10 comments

Environment

image

Reproduction

Just create a new project in Linux

Describe the bug

When I build my app in Linux, it throws error just like below.
And I tried to create a new project with Nuxt in Linux, it threw error too.
What should I do?

image

Additional context

No response

Logs

No response

What should I do bros

pi0 commented

Can you log also share cat /etc/issue and node --version? 🙏🏼

Can you log also share cat /etc/issue and node --version? 🙏🏼@pi0

image

pi0 commented

I would recommend you to use Node.js 18. Node 16 is EOL and not supported anymore. (also os version seems not visible but i guess RHEL? kernel is also too old)

我您使用 Node.js 18。建议 Node 16 已停产,不再受支持。(操作系统版本似乎不可见,但我猜是 RHEL?内核也太旧了)
@pi0
image

In other machine, node version and karnel both same whith it, and that can execute normally

pi0 commented

Thanks for sharing it. So yeah both CentOS/RHEL and Node.js versions are outdated. Are you able to update them?

(feel free to message me in discord @pi0 would be happy to help on your local environment)

Thanks for sharing it. So yeah both CentOS/RHEL and Node.js versions are outdated. Are you able to update them?

(feel free to message me in discord @pi0 would be happy to help on your local environment)

Thank you @pi0 , according to your suggestion, we had fix it by update node v16.17 => 17.9

pi0 commented

(Cool! BTW please consider Node.js 18 or 20. 17 is an intermediate release and not stable choice for production)

(Cool! BTW please consider Node.js 18 or 20. 17 is an intermediate release and not stable choice for production)

Yeah, our OS is too old to support 18, if consider to update 18, need update OS too

pi0 commented

Just out of curiosity, have you tried https://bun.sh ? You can use it in place of Node.js for production!