Skip to content

node .output/server/index.mjs #267

@JuJoker

Description

@JuJoker

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:
微信图片_20240411165839

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没有了解,在运行项目时出现了下面的问题

  1. 我执行yarn install命令下载相关依赖,然后执行yarn build命令进行打包,打包完毕后,执行
    ···
    node .output/server/index.mjs
    ···
    报错(node版本16.16, 机器windows11),报错如下:

微信图片_20240411165839

  1. 在Ubuntu22.04上进行上述操作,不会报错,执行完毕node .output/server/index.mjs之后,listening ::3000,但是在浏览器中访问没有反应,一直在加载

请问如果不使用docker部署,直接使用node .output/server/index.mjs启动打包的项目可以吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions