1Panel 版本:1.7.4,1.7.3,1.7.2都有这个问题
日志如下:
nest-web1 |
nest-web1 | added 724 packages, and audited 725 packages in 30s
nest-web1 |
nest-web1 | 128 packages are looking for funding
nest-web1 | run npm fund
for details
nest-web1 |
nest-web1 | found 0 vulnerabilities
nest-web1 | npm notice
nest-web1 | npm notice New patch version of npm available! 10.2.0 → 10.2.3
nest-web1 | npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.2.3
nest-web1 | npm notice Run npm install -g npm@10.2.3
to update!
nest-web1 | npm notice
nest-web1 |
nest-web1 | > nest-web@0.0.1 start:dev
nest-web1 | > nest start --watch
nest-web1 |
nest-web1 | ec[e[90m3:45:29 AMe[0m] Starting compilation in watch mode…
nest-web1 |
nest-web1 | [e[90m3:45:35 AMe[0m] Found 0 errors. Watching for file changes.
nest-web1 |
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[NestFactory] e[39me[32mStarting Nest application…e[39m
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[InstanceLoader] e[39me[32mAppModule dependencies initializede[39me[38;5;3m +21mse[39m
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[InstanceLoader] e[39me[32mUserAppModule dependencies initializede[39me[38;5;3m +1mse[39m
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[InstanceLoader] e[39me[32mUserModule dependencies initializede[39me[38;5;3m +2mse[39m
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[RoutesResolver] e[39me[32mUserController {/user}:e[39me[38;5;3m +29mse[39m
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[RouterExplorer] e[39me[32mMapped {/user/name, GET} routee[39me[38;5;3m +7mse[39m
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[RouterExplorer] e[39me[32mMapped {/user/info, GET} routee[39me[38;5;3m +2mse[39m
nest-web1 | e[32m[Nest] 75 - e[39m11/05/2023, 3:45:36 AM e[32m LOGe[39m e[38;5;3m[NestApplication] e[39me[32mNest application successfully startede[39me[38;5;3m +4mse[39m
没看到错误 贴一下全部日志
应用启动中其实是等类似 npm run dev 命令执行结束 并且端口正确对外服务
一直启动中可能就是有错误
需要看具体的错误日志
这就是全部日志
up to date, audited 725 packages in 3s
128 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New patch version of npm available! 10.2.0 -> 10.2.3
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.3>
npm notice Run `npm install -g npm@10.2.3` to update!
npm notice
> nest-web@0.0.1 start:dev
> nest start --watch
ec[4:19:07 AM] Starting compilation in watch mode...
[4:19:12 AM] Found 0 errors. Watching for file changes.
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [NestFactory] Starting Nest application...
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [InstanceLoader] AppModule dependencies initialized +28ms
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [InstanceLoader] UserAppModule dependencies initialized +0ms
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [InstanceLoader] UserModule dependencies initialized +1ms
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [RoutesResolver] UserController {/user}: +16ms
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [RouterExplorer] Mapped {/user/name, GET} route +5ms
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [RouterExplorer] Mapped {/user/info, GET} route +0ms
[Nest] 54 - 11/05/2023, 4:19:13 AM LOG [NestApplication] Nest application successfully started +4ms
ec[4:35:23 AM] File change detected. Starting incremental compilation...
[4:35:24 AM] Found 0 errors. Watching for file changes.
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [NestFactory] Starting Nest application...
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [InstanceLoader] UserAppModule dependencies initialized +21ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [InstanceLoader] UserModule dependencies initialized +0ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [RoutesResolver] AppController {/}: +23ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [RouterExplorer] Mapped {/, GET} route +5ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [RoutesResolver] UserController {/user}: +1ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [RouterExplorer] Mapped {/user/name, GET} route +1ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [RouterExplorer] Mapped {/user/info, GET} route +1ms
[Nest] 295 - 11/05/2023, 4:35:25 AM LOG [NestApplication] Nest application successfully started +4ms
看最后一句,已经启动成功了。
Nest application successfully started。
端口也正确映射了,通过curl也正确返回了内容。
你是自己的应用 还是什么 可以给我一份 我试一下
我也遇到了同样的问题,在根路由"/"返回一个200的响应就ok了
1 个赞
同样的问题,非常感谢,参考您的方法解决了