Unknown Error during "Build with Next" Process??? I don't know where is it located...
Unanswered
West African Lion posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
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!!
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](https://cdn.discordapp.com/attachments/1178201013207978054/1178201013497364500/image.png?ex=65754833&is=6562d333&hm=b5f71715642a755e78f811d996c2bd05f6fa021797a4acd2a23f0e0cfcf6fb1e&)
6 Replies
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
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](https://cdn.discordapp.com/embed/avatars/2.png)
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...
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](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
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](https://cdn.discordapp.com/avatars/657067112434499595/aff4eeb34922ca980b0d5fbb5bc60c21.webp?size=256)
risky
@West African Lion just checking, has it now worked, and can i mark the thread as answered?
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
West African LionOP
Im still working on it, hehe, I will update to you as soon as I solve this![:galactic_relifed:](https://cdn.discordapp.com/emojis/767753337302941698.png)
![:galactic_relifed:](https://cdn.discordapp.com/emojis/767753337302941698.png)
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
West African LionOP
@risky Hello, I encountered this problem, after I solved the problem, what solution do you have on mind?
![Image](https://cdn.discordapp.com/attachments/1178201013207978054/1178232955768942592/image.png?ex=657565f3&is=6562f0f3&hm=3bf5d492f174bcb4778e619a6ed680d28855577c8ba257ff374a08235e878be2&)