#How to resolve segmentation fault?

1 messages · Page 1 of 1 (latest)

uneven fractal
#

I created a new project from create-next-app and it fails running after npm run dev and tries to access localhost:3000 saying:
/c/Program Files/nodejs/npm: line 65: 193 Segmentation fault "$NODE_EXE" "$NPM_CLI_JS" "$@"

It doesn't seem to be an issue with Node.js installation.
Would you please help me resolve this?

stark elmBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

hearty ibex
uneven fractal
hearty ibex
#

And send the output

uneven fractal
#

fails silently with no error

hearty ibex
#

Whats ur nodejs version? Also did you run npm install ahead of time?

uneven fractal
#

tried with different nodejs versions. 20, 22, 24

#

created this proj with npx so npm install was not needed

hearty ibex
#

ah right

hearty ibex
#

wait no thats for standalone

#

hang on

#

hm nevermind that only exists for standalone builds sorry. did u change any default configuration options for create-next-app? if not im not sure i can help any further

uneven fractal
#

it works with next.js earlier version btw

#

I tried with v14.2.33 and it works

hearty ibex
#

mby just try to delete n run npx again but make sure ur in a command prompt not git terminal

hearty ibex
uneven fractal
#

yes i tried seperate npx create next app

uneven fractal
ebon blade
#

try adding --webpack in args, it could be smth in turbopack

uneven fractal
ebon blade
#

yeah

uneven fractal
#

yeah tried with that but not working too

ebon blade
#

damn, so your cmd/git bash and another person ages ago on macos had it too

#

very weird

uneven fractal
#

I'm using windows btw

#

CRA works pretty fine,

ebon blade
#

out of curiosity, i kinda want to see if https://bun.com runtime gives a better stack trace for crash lol (but its fine if thats too much changes for you)

# install bun on windows
powershell -c "irm bun.sh/install.ps1 | iex"
# init a new one just in case, but it should still work decently with npm's install
bunx --bun create-next-app
# run next dev in bun runtime
bun --bun run dev
#

oh also you arent on windows arm are you?

uneven fractal
#

windows arm?

#

its Intel

ebon blade
# uneven fractal windows arm?

you prob would know if you were using it, but some low-end new laptops run on windows arm and it has really native apps bad support, so nearly everything is emulated (which creates cases for easy crashes)

uneven fractal
#

yes im using it and its not arm, it's intel based

ebon blade
#

cool cool

#

and its not like a really old one is it
-# (if it were, bun would refuse to install i believe anyway lol)

uneven fractal
ebon blade
#

yooo

uneven fractal
ebon blade