Next.js Discord

Discord Forum

Open source related doubt, and npm install error problem

Unanswered
Stony gall posted this in #help-forum
Open in Discord
Stony gallOP
I was trying to contribute to Piyush Garg’s open-source repo after watching his open source tutorial lecture. It’s his portfolio website, and I followed the steps — forked the repo, cloned it, switched the branch, and ran npm run dev. But for some reason, I’m not seeing the latest version of the website (the one linked in the GitHub repo and for which issues are raised). Any idea why?
I checked whether the website linked in the github repository is different from the one hosted in the GitHub repository. Initially, I thought they might be separate websites. However, after reviewing the issues section in the repository, I noticed that users have reported issues related to the same website that’s in the repository.
One more question:
Every time I run npm install on a project, I get a long error with the code ERESOLVE. I asked ChatGPT, and it said it's due to a hard dependency conflict that even the latest npm can't resolve automatically. The suggested fix was to use:
npm install --legacy-peer-deps
Why does this keep happening, even though I'm already using the latest version of npm?

38 Replies

send the repo link
@tsá you're probably on the wrong branch
Stony gallOP
First of all, thank you for considering helping me out—this is actually my very first time trying to contribute to an open source project, so I asked ChatGPT for some guidance on how to get started. It walked me through the initial steps: I forked the repository, created a local folder for the project, and added the remote origin pointing to my forked version. After that, I created a new branch specifically for the fix, naming it something relevant to the bug I’m planning to work on, as suggested. I'm still learning the process, so I really appreciate your patience and support
@tsá when there is a newer dependency like react 19, older libraries may have not updated their peer deps yet, that's why you get that error. but usually it's nothing serious.
Stony gallOP
is this for the npm install error bug ? if yes then is it okay to everytime get that error and then run npm install --legacy-peer-deps
@tsá yea, the author has not updated
Stony gallOP
so that means I cant contribute to the link (web app) in the github repository
@tsá what do you mean it's different
Stony gallOP
let me show you the screenshot of what I am running in my local host
Stony gallOP
this is the one I am running in my local host
@Stony gall Click to see attachment
yeah, he has has not updated the website
Stony gallOP
and this is the one for which the link has been present in the github repo
@Stony gall and this is the one for which the link has been present in the github repo
yeah, he's not pushing updates to that repo, he made a remake, and he's pushing to a private repo ig
@tsá yeah, he has has not updated the website
Stony gallOP
Thankyou very much, I spent so many hours
thinking I did something wrong while forking or commanding
half of my day went solving this only
just one more thing - for later, how can I get to know that "yea this github repository is not updated"
just like how you got it
@tsá yeah, he's not pushing updates to that repo, he made a remake, and he's pushing to a private repo ig
Stony gallOP
but how are people able to raise issues for this one ?
are they all maintainers & moderators of this github repository ?
it's just that the codebase does not resemble, or is the latest website
they just raise issues not looking at the codebase, just raising thinking it is a report to the latest website edition ig
@tsá it's just that the codebase does not resemble, or is the latest website
Stony gallOP
the very latest issue posted in it has a screen recording of the latest version only
I am sorry if its sounding cross questioning - I am really not used to open source
yeah, but they're recording from the website not the local version
Stony gallOP
and I am very confused
@tsá yeah, but they're recording from the website not the local version
Stony gallOP
okay got it, thanks a lot for your time and efforts
really helped a lot
np