-
-
Notifications
You must be signed in to change notification settings - Fork 358
Description
I don't have any knowledge about nuxt. When running the project, the following problems occurred:
I executed the 'yarn install' command to download the related dependencies, and then executed 'yarn build' command to package it. After the packaging was completed, executing 'node .output/server/index.mjs' resulted in an error (Node version 16.16, Windows 11 machine), the error message is as follows:

Performing the above operations on Ubuntu 22.04 does not result in an error. After executing 'node .output/server/index.mjs', it displays 'listening ::3000', but there is no response when accessing it in the browser; it keeps loading.
Can I start the packaged project directly using 'node .output/server/index.mjs' without deploying it using Docker?
我对nuxt没有了解,在运行项目时出现了下面的问题
- 我执行yarn install命令下载相关依赖,然后执行yarn build命令进行打包,打包完毕后,执行
···
node .output/server/index.mjs
···
报错(node版本16.16, 机器windows11),报错如下:
- 在Ubuntu22.04上进行上述操作,不会报错,执行完毕node .output/server/index.mjs之后,listening ::3000,但是在浏览器中访问没有反应,一直在加载
请问如果不使用docker部署,直接使用node .output/server/index.mjs启动打包的项目可以吗?
