a year ago
apologies because im still a noob at this. i thought railway should be able to understand my github repo and configure it so that i can run my nuxt app. I got npx nuxi@latest init -t ui from https://ui.nuxt.com/getting-started/installation . put it on github. and deployed.
the initial issue seemed to be that it didn't know what command to run so i updated it to npm run start
then I got some new errors, and finally after trying to chatgpt my way out of this… im left with this build error.
npm warn config production Use `--omit=dev` instead.
npm error code ETARGET
npm error notarget No matching version found for @poppinss/exception@1.1.1.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-03-05T00_39_14_675Z-debug-0.logI feel like im missing something basic here. should i have to do any sort of config in railway to get a nuxt sample to build and deploy? i was going to use the nuxt template, but i wanted to start with nuxt ui, hence using the command i went for instead.
59 Replies
FWIW. I also tried a brand new nuxt project
from here: https://nuxt.com/docs/getting-started/installation
and it seemed to start after i added an explicit start step.
but then when navigating to the url it crashes immediately.
a year ago
that package version doesn't exists @poppinss/exception@1.1.1.
a year ago
amazing question
but also. i tried with a clean project (i.e. npm create nuxt my-project and still no dice.
a year ago
what was the error? 'cause I got some nuxt ui pro templates running and nixpacks oneshot it
oh. okay. it was the fact that it did suceed BUT when navigating to the web address the service crashed
a year ago
wait, ur talking about poppins the font or poppinss the exception handler
a year ago
just to be safe
i have no idea. i just started from the nuxt "ui" template
npx nuxi@latest init -t ui
sorry. im an android dev so im still learning. let me try to see if i can figure out what "poppins" lib its using
a year ago
I don't think nuxt uses the poppinsS (the exception handler), u probably mistyped something and or incorrectly added this instead of poppins (the font)
alright. so just as a sanity check
I rannpx nuxi@latest init -t ui
chose a directory.
chose "npm"
does a bunch of stuffnpm run dev works. can see it locally on port 3000
well. apparently that just crashes now. wtf. i swear i have a project running made with that same command. any i tried it twice yesterday. 🤦♀️
at this point. i just have to add npm run start to the build run settings section, right?
a year ago
I think the issue is on npx nuxi init
a year ago
I think they messed up, I can’t test it rn
a year ago
but that poppinsS package had some inactivity then it was downloaded thousands of times in the last week
a year ago
try npx init without the UI template
a year ago
https://github.com/nuxt/starter/tree/ui seems like it isn't npx nuxi init -t ui at fault here, their deps seem fine
i quit on nuxt ui. just trying nuxt out of the box.npm create nuxt
but it still fails
a year ago
You have to set a start command here
a year ago
it should be node .output/server/index.mjs
a year ago
can be your package.json scripts
a year ago
you probably already have a build one, which railway executes
a year ago
for production envs, yes
a year ago
you only have a build one, a dev one, now you need one to serve the assets that the cli built
moreso a rehtorical question. not necessarily asking you. just thinking out loud. lol
a year ago
it's because the command changes depending on how you host it and where you host it, railway for example goes after a start command
a year ago
good enough
a year ago
keep me updated if u have any other error
a year ago
don't worry about it
a year ago
glad it's solved


