Trying nuxt with
npx nuxi@latest init -t ui
but it won't deploy
coltonidle
FREEOP

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.log

I 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

coltonidle
FREEOP

a year ago

N/A


coltonidle
FREEOP

a year ago

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.


medim
MODERATOR

a year ago

that package version doesn't exists @poppinss/exception@1.1.1.



coltonidle
FREEOP

a year ago

dafuq. how does it even build locally then?


medim
MODERATOR

a year ago

amazing question


coltonidle
FREEOP

a year ago

but also. i tried with a clean project (i.e. npm create nuxt my-project and still no dice.


coltonidle
FREEOP

a year ago

Let me see if I can grab the logs for that.


medim
MODERATOR

a year ago

what was the error? 'cause I got some nuxt ui pro templates running and nixpacks oneshot it


coltonidle
FREEOP

a year ago

actually. let me just remove poppins for now and see whatthat does.


coltonidle
FREEOP

a year ago

let me retry. one sec.


coltonidle
FREEOP

a year ago

oh. okay. it was the fact that it did suceed BUT when navigating to the web address the service crashed


medim
MODERATOR

a year ago

wait, ur talking about poppins the font or poppinss the exception handler


medim
MODERATOR

a year ago

just to be safe


coltonidle
FREEOP

a year ago

i have no idea. i just started from the nuxt "ui" template

npx nuxi@latest init -t ui


coltonidle
FREEOP

a year ago

sorry. im an android dev so im still learning. let me try to see if i can figure out what "poppins" lib its using


medim
MODERATOR

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)


coltonidle
FREEOP

a year ago

i wonder how/why this runs locally lol


coltonidle
FREEOP

a year ago

let me try from scratch again though. 1 sec.


coltonidle
FREEOP

a year ago

going to try npx nuxi@latest init -t ui


coltonidle
FREEOP

a year ago

alright. so just as a sanity check

I ran
npx nuxi@latest init -t ui
chose a directory.
chose "npm"
does a bunch of stuff
npm run dev works. can see it locally on port 3000


coltonidle
FREEOP

a year ago

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. 🤦‍♀️


coltonidle
FREEOP

a year ago

let me just try a plain ol nuxt project. a la npm create nuxt


coltonidle
FREEOP

a year ago

okay. that run locally. no issues.


coltonidle
FREEOP

a year ago

Going to push to github and see if railway can deploy… 🤞


coltonidle
FREEOP

a year ago

1346861688682447000


coltonidle
FREEOP

a year ago

at this point. i just have to add npm run start to the build run settings section, right?


coltonidle
FREEOP

a year ago

looking good thus far

1346862112143573200


coltonidle
FREEOP

a year ago

@Medim yep. crashed again

1346862545683873800


medim
MODERATOR

a year ago

I think the issue is on npx nuxi init


medim
MODERATOR

a year ago

I think they messed up, I can’t test it rn


medim
MODERATOR

a year ago

but that poppinsS package had some inactivity then it was downloaded thousands of times in the last week


medim
MODERATOR

a year ago

try npx init without the UI template


medim
MODERATOR

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


coltonidle
FREEOP

a year ago

i quit on nuxt ui. just trying nuxt out of the box.
npm create nuxt
but it still fails


coltonidle
FREEOP

a year ago

but this time. it builds. but seems to crash (ie. my last screenshot)


medim
MODERATOR

a year ago

You have to set a start command here


medim
MODERATOR

a year ago

it should be node .output/server/index.mjs


coltonidle
FREEOP

a year ago

in railway?


medim
MODERATOR

a year ago

can be your package.json scripts


medim
MODERATOR

a year ago

you probably already have a build one, which railway executes


coltonidle
FREEOP

a year ago

waka flaka? packaga.json needs to know how to start nuxt?


medim
MODERATOR

a year ago

for production envs, yes


coltonidle
FREEOP

a year ago

that seems so weird (why would that not be the default?)


medim
MODERATOR

a year ago

you only have a build one, a dev one, now you need one to serve the assets that the cli built


coltonidle
FREEOP

a year ago

moreso a rehtorical question. not necessarily asking you. just thinking out loud. lol


coltonidle
FREEOP

a year ago

hm. thats so weird to me. but okay. let me try!


medim
MODERATOR

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


coltonidle
FREEOP

a year ago

interesting…..



coltonidle
FREEOP

a year ago

i only really know railway at this point. lol


medim
MODERATOR

a year ago

good enough


medim
MODERATOR

a year ago

keep me updated if u have any other error


coltonidle
FREEOP

a year ago

thats it.


coltonidle
FREEOP

a year ago

its over


coltonidle
FREEOP

a year ago

THANK YOU!


coltonidle
FREEOP

a year ago

let me know if you have a buymeacoffee lol


medim
MODERATOR

a year ago

don't worry about it


medim
MODERATOR

a year ago

glad it's solved


Loading...