Skip to content
Advertisement

“npm install” not working for react project pulled from github

I’m on ubuntu 20.04.4 LTS. I’m trying to install locally a react project.

I tried to clone de repo from github, and install locally the react app, doing this :

git clone https://github.com/OpenClassrooms-Student-Center/7008001-Debutez-avec-React.git

then

npm install --verbose

But it just won’t work. this is the output :

JavaScript

I searched a while but I just don’t understand… As you might have understood from the repo I’m trying to install, I am learning coding and react 🙂

Thanks for your help

Advertisement

Answer

Change your branch to one of the assignment ones like: https://github.com/OpenClassrooms-Student-Center/7008001-Debutez-avec-React/tree/P2C2-Begin

You current branch does not have a package.json file like the error says and therefore you cant install node modules

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement