Next.js Discord

Discord Forum

next js build not complete. caused by error code ERPEM

Unanswered
Nile Crocodile posted this in #help-forum
Open in Discord
Nile CrocodileOP
the internet said the error raised because i the folder don't have permission, but when i gave the folder the full control permission it still didn't work. i build the web to production on my IIS server, i also stop the IIS process, kill the node js process, delete the .next folder still not work.

what happend?

thank you.

4 Replies

@Nile Crocodile the internet said the error raised because i the folder don't have permission, but when i gave the folder the full control permission it still didn't work. i build the web to production on my IIS server, i also stop the IIS process, kill the node js process, delete the .next folder still not work. what happend? thank you.
go out of your IDE, open the folder in your file explorer, open a terminal there (on windows: right click -> open terminal) and then run the build command there. If that still does not work, open a terminal in admin mode and navigate to your folder using cd /to/your/folder and run the build command
Nile CrocodileOP
i did that too. i logged to the web server as administrator
@Nile Crocodile i did that too. i logged to the web server as administrator
that worked all the time for me. I guess then I dont have a solution for you, sorry
Nile CrocodileOP
okay. thx for the answer