remix: [Bug]: Could not locate @remix-run/serve on npm run dev

Which Remix packages are impacted?

  • remix (Remix core)
  • create-remix
  • @remix-run/architect
  • @remix-run/cloudflare-workers
  • @remix-run/dev
  • @remix-run/express
  • @remix-run/netlify
  • @remix-run/node
  • @remix-run/react
  • @remix-run/serve
  • @remix-run/server-runtime
  • @remix-run/vercel

What version of Remix are you using?

1.0.4

Steps to Reproduce

  • npx create-remix@latest
  • npm run dev
  • Selected Remix App Server and Typescript

Expected Behavior

It should start a remix server and serve the app

Actual Behavior

It exits the process with an error Could not locate @remix-run/serve. Please verify you have it installed to use the dev command.

More Info:

Node Version - 12.14.1 NPM Version - 7.19.0 OS: Screenshot 2021-11-23 at 10 31 01 PM

Please ask out if you need more info.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 22 (3 by maintainers)

Most upvoted comments

I’m facing the same issue on node v12

but node 16 occurs the same error

IDK if this is intentional as this was not mentioned in this official tutorial but it works just fine with node v14. So, I’ll be closing this one.

I’m facing the same issue on node v12

@alvaromartmart Remix requires Node version 14 or greater

as a temporary solution, run

npm install --save-dev @remix-run/serve

Having this issue. Tried all the above with no luck.

Same thing here

same issue. Coudnt run remix express basetemplate but able to run Indie template which is express template.

Also make sure @remix-run/serve is in your regular dependencies (not just dev dependencies)

Seemed to make a difference on Heroku.

I had to add @remix-run/server-runtime as a dependency as well after moving @remix-run/serve to dependencies

Having this issue. Tried all the above with no luck.

Node v16.13.1 works. Just make sure you are running rm -rf node_modules package-lock.json after switching node versions. Do a npm i afterwards and things should be fine.

@alvaromartmart they have specified it in package.json for the starter templates

@Tanner-Scadden @franklinjavier sorry! will get a patch release out Monday with this included