Next.js Discord

Discord Forum

Fresh install: "[Error: ENOENT: no such file or directory"

Unanswered
Dwarf Hotot posted this in #help-forum
Open in Discord
Dwarf HototOP
I just use npx create-next-app@lates and after install npm run build and got this error:
[Error: ENOENT: no such file or directory, open 'E:\projects\almostwiki\my-app\build\BUILD_ID'] 


I also can't use npm run dev, it waits a few seconds and then cancels without any error message.

I tried Node LTS and the newest version but both don't work.

48 Replies

@Dunker can i see the results of `npm ls` at root project dir
Dwarf HototOP
@Dwarf Hotot Click to see attachment
Dunker
can you show full log of npm run build
Dwarf HototOP
PS E:\projects\almostwiki\my-app> npm run build

> my-app@0.1.0 build
> next build

   Creating an optimized production build  ..
PS E:\projects\almostwiki\my-app>
no log file in my dir
Dwarf HototOP
PS E:\projects\almostwiki\my-app> npm run dev

> my-app@0.1.0 dev
> next dev


PS E:\projects\almostwiki\my-app>


PS E:\projects\almostwiki\my-app> npm run start

> my-app@0.1.0 start
> next start

[Error: ENOENT: no such file or directory, open 'E:\projects\almostwiki\my-app\build\BUILD_ID'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'E:\\projects\\almostwiki\\my-app\\build\\BUILD_ID'
}
PS E:\projects\almostwiki\my-app>
and this are the other two runs
in case needed
Dwarf HototOP
yes with package json, prerender anifest and routes manifest
so he seems to start something at least
Dunker
what ?
do you mind if i connect you via live share to solve it faster
Dwarf HototOP
i can share u my screen yes
Dunker
no vs code live share session
Dwarf HototOP
eh never used it wait
lemme check how to start it
Dunker
f1 > start a new collab. ..
Dunker
so man
Dunker
remove node.js from your computer, install LTS one from website and try doing same things again
personally i recommend using next 13.4 with node 18
Dwarf HototOP
I tried Node 18 already with 13.4 too and also has the wasm error
Dunker
when creating project, create-next-app@13.4
Dwarf HototOP
i did yesterday
Dunker
have you tried with yarn
Dwarf HototOP
no, but I can try
Dunker
no
can you create a new project with pages router
Dwarf HototOP
k wait
Dunker
cuz i am on node 18 and next 13.5.5 app dir working on me
Dwarf HototOP
node 20 with page router does not work
let me install 18
does not work ...
Dunker
same situation or
Dwarf HototOP
yep
no logs, just cancel
Dunker
what npm -v gives
Dwarf HototOP
10.2
Dunker
node -v
Dwarf HototOP
18.18
Dunker
i ll connect again
wait
Dunker
can you cd to desktop
Dwarf HototOP
did it kick u?
Dunker
y