无法在此项目中找到 expo - 你 运行 yarn / npm install 了吗? npm已安装,expo目录存在

Unable to find expo in this project - have you run yarn / npm install yet? Npm has been installed, expo directory exists

到目前为止,我的 Expo 项目几乎有 9999999% 的错误,当它决定向我抛出一个我从未听说过的错误时,它终于达到了高潮:

module not found: can't resolve '../utilities/platform'

我从未见过这种情况,发生这种情况时我明确地在一个独立的样式文件中工作。我删除了文件,错误仍然存​​在。看到它在 node_modules 中,我认为删除 node_modules 会有所帮助。事实并非如此。我删除了 node_modules 然后尝试 运行 npm i --save 但它一直出错。我重新启动了计算机,删除了新的 node_modules,然后再次尝试 运行 npm i --save。这次迎接我的是:

read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json 
was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! Maximum call stack size exceeded

现在,我已经完成了一半 node_modules,每当我尝试 运行 expo start,在此之前我有大约 700000000 次,它告诉我这个...

Unable to find expo in this project - have you run yarn / npm install yet?

哪个,是的,愚蠢的我已经设置了我的博览会,是的,再次,我只是 运行 npm install 大约 22 次。所以我完全不知道发生了什么,为什么会发生,或者如何解决所发生的一切。如果你能帮助我,我会奖励你我的第一个出生但公平的警告可能还需要 20 年

尝试从“%appdata%\Temp”中删除所有 react-native 数据文件夹并执行以下命令:

cd android(如果有的话)

gradlew clean

cd.. 并删除 node_modules 文件夹

npm cache clean --force

npm install

npm start -- --reset-cache