nana2912
nana2912

Reputation: 19

Can not run React App after cloning it from Github

I really need your help. I would be highly appreciated.

I clone this project : https://github.com/iearn-finance/iearn-finance, and I want to have a front-end website like this: https://yearn.finance/.

But I can not run it locally. I have tried "npm install" and then "npm start", check package.json carefully but it still does not work and gave me this error:

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path D:\iearn-finance-develop\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'D:\iearn-finance-develop\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Upvotes: 0

Views: 4874

Answers (2)

Tohirul Islam
Tohirul Islam

Reputation: 396

Try cleaning the cache with npm cache clean Then initialize with npm init

After that, install your packages.
It worked for mine.

Upvotes: 0

Majid Ahmadi
Majid Ahmadi

Reputation: 52

1- are you sure path D:\iearn-finance-develop is correct?? isn't D:\iearn-finance ??

2-did you : delete package-lock.json and node_modules and then npm install

3-check on your filesystem if the file exists.

try these :

npm cache clean

you should initialize package with :

npm init

then install your packages

Upvotes: 1

Related Questions