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 ServerandTypescript
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:

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)
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.
@alvaromartmart Remix requires Node version 14 or greater
as a temporary solution, run
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/serveis in your regular dependencies (not just dev dependencies)Seemed to make a difference on Heroku.
I had to add
@remix-run/server-runtimeas a dependency as well after moving@remix-run/servetodependenciesHaving this issue. Tried all the above with no luck.
Node
v16.13.1works. Just make sure you are runningrm -rf node_modules package-lock.jsonafter switching node versions. Do anpm iafterwards and things should be fine.@alvaromartmart they have specified it in
package.jsonfor the starter templates@Tanner-Scadden @franklinjavier sorry! will get a patch release out Monday with this included