Next.js Discord

Discord Forum

Unknown Error during "Build with Next" Process??? I don't know where is it located...

Unanswered
West African Lion posted this in #help-forum
Open in Discord
Avatar
West African LionOP
Hello everyone, I am trying to host my own nextjs website for free on github, and met this error during the process:

Run npx --no-install next build
npm ERR! canceled

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2023-11-26T04_34_07_590Z-debug-0.log
Error: Process completed with exit code 1.

Have you ever encountered this error before?

I don't know how to solve it, since I have just followed a tutorial online, chatGPT's answers seem pointless(didn't work). Thank you in advance!!
Image

6 Replies

Avatar
Risky did start the fire 🙃
looking at the gh repo you linked, you have effectivly 2 projects... one root and one sub dir... do you need the distinction or can you move everything inside my-portfolio to the root folder?
Avatar
West African LionOP
hello, thank you for responding...., I move to "my-portfolio" directory tried to execute "npx --no-install next build" and it worked... seems that It only needs the directory where the app installed??

BTW, how can I move the dependencies inside the "my-portfolio" folder... I downloaded some of dependencies under the root folder, not in "my-portfolio"

Your suggestion gave my idea...! thanksssss...
Avatar
Risky did start the fire 🙃
BTW, how can I move the dependencies inside the "my-portfolio" folder... I downloaded some of dependencies under the root folder, not in "my-portfolio"
you just look at the package.json, and move it to the other and run npm install again
Avatar
Risky did start the fire 🙃
@West African Lion just checking, has it now worked, and can i mark the thread as answered?
Avatar
West African LionOP
Im still working on it, hehe, I will update to you as soon as I solve this:galactic_relifed:
Avatar
West African LionOP
@Risky did start the fire 🙃 Hello, I encountered this problem, after I solved the problem, what solution do you have on mind?
Image