Next.js Discord

Discord Forum

Whats the solution to this

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
So i have this project that our professor shared with us, and obviously i opened it with git bash but when i tried to run: "npm install" it doesnt work. Btw im quite new to these stuff so it might be helpful to share the solution

16 Replies

Silver Fox
The error says that package.json—the file specifying dependencies for npm to install—doesn't exist. This means 1) your professor's project doesn't have any dependencies, or 2) the project isn't in JavaScript.
btw this also could be that i prob didnt run the proper Node.js thats required for Next.js
could that be the problem?
@Silver Fox
Silver Fox
I'm not sure, different versions of Node.js/npm shouldn't affect its ability to find a package.json file. Are you sure your professor's project requires dependencies, or can you just node index.js (or equivalent)?
American black bearOP
sorry whats that
dependencies?
btw i can share the other files if thats fine
so you can analyze specificially where the issue might be
because this project is for practice
but i need edit some stuff and for some reason its not opening in my laptop
American black bearOP
btw as for node.js the current version that i downloaded is v22.14.0
Silver Fox
Sharing the files would be great. Dependencies are pieces of code other developers publish you can use in your projects; when you run npm install, npm checks for dependencies listed in package.json that the project needs and gets them ready.
Node.js v22.14.0 looks fine, if you can share the project, I can see what's specifically wrong.
American black bearOP
Is it fine if i DM you?