从Github克隆后无法运行React App

问题描述

我真的需要你的帮助。我将不胜感激。

我克隆了这个项目:https://github.com/iearn-finance/iearn-finance, 并且我想要一个这样的前端网站:https://yearn.finance/

但是我不能在本地运行。我尝试过"npm install",然后尝试"npm start",请仔细检查 package.json ,但仍然无法正常工作,并给了我这个错误:

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

解决方法

1-您确定路径 D:\ iearn-finance-develop 是正确的吗? 不是 D:\ iearn-finance ??

2-您: 删除 package-lock.json node_modules ,然后 npm install

3-检查文件系统上的文件是否存在。

尝试这些:

npm缓存清理

您应该使用来初始化程序包:

npm初始化

然后安装您的软件包

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...