0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

microで Error: listen EADDRINUSE: address already in use localhostが発生

Last updated at Posted at 2024-05-30

対応内容

microからexpressに変更した

削除

  "micro": "^10.0.1",
  "micro-cors": "^0.1.1",

導入

 "cors": "^2.8.5",
 "express":` "^4.19.2",

発生したエラー

microのissueに上がっていた↓と同じ

修正MRはできているが近いうちにリリースされる様子がない👀

micro: Accepting connections on port 3010
micro: Error: listen EADDRINUSE: address already in use localhost
    at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
    at __node_internal_uvExceptionWithHostPort (node:internal/errors:589:12)
    at Server.setupListenHandle [as _listen2] (node:net:1724:21)
    at listenInCluster (node:net:1789:12)
    at Server.listen (node:net:1888:5)
    at startEndpoint (/Users/xxx/sdm-queue/node_modules/micro/dist/src/bin/micro.js:123:12)
    at start (/Users/xxx/sdm-queue/node_modules/micro/dist/src/bin/micro.js:145:13)
micro: Gracefully shutting down. Please wait...
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

考えたこと

懸念点

  • 提示された解決策では個人のリポジトリをcloneしている
  • microが2年くらいアップデートがないのでなかなか修正版リリースされなさそう

memo

ついでにapollo-server-microが@apollo/serverへ統合され非推奨になっていたので @apollo/serverに変更した

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?