Error running npm run dev

I’m trying to start my app running npm run dev but I received the error below. How could I solve it?

Cannot find module '/Users/rafael/myapp/node_modules/@shopify/cli/dist/http-proxy-GGTVQ6CU.js'   │
│  imported from /Users/rafael/myapp/node_modules/@shopify/cli/dist/index.js                        │
│                                                                                                                 │
│  To investigate the issue, examine this stack trace:                                                            │
│    at js' imported from /Users/rafael/myapp/node_modules/                                         │
│    at new NodeError (node:internal/errors:405)                                                                  │
│    at finalizeResolution (node:internal/modules/esm/resolve:327)                                                │
│    at moduleResolve (node:internal/modules/esm/resolve:980)                                                     │
│    at defaultResolve (node:internal/modules/esm/resolve:1193)                                                   │
│    at defaultResolve (node:internal/modules/esm/loader:404)                                                     │
│    at resolve (node:internal/modules/esm/loader:373)                                                            │
│    at getModuleJob (node:internal/modules/esm/loader:250)                                                       │
│    at import (node:internal/modules/esm/loader:336)                                                             │
│    at importModuleDynamically (node:internal/modules/esm/translators:143)                                       │
│    at importModuleDynamicallyCallback (node:internal/modules/esm/utils:176)

There’s no error related to the port 3457 already in use. So you can:

  • Restart your computer.
  • Or run npm i && npm run dev in the apps’ root folder.

This error happens when you have node version changes and updates.

1 Like

Glad you figured this out Rafael!

1 Like