node.js - Node 服务器卡在加载依赖图上

标签 node.js react-native genymotion

我刚刚创建了一个新的react-native应用程序,当我在应用程序的文件夹上使用react-native start时,它卡在“正在加载依赖关系图...”上,然后我需要通过任务管理器将其关闭,因为这个过程占用了我所有的内存。

我尝试重新安装node、npm、yarn和chocolatey并清除所有缓存。

最佳答案

好吧,我尝试从 12.4 降级 Node 版本至10.16.0并使用react-native start --reset-cache但仍然陷入困境。

但是,我尝试了 sudo npm start --reset-cache (不是 sudo react-native start --reset-cache ),它终于起作用了!

使用 RN 0.61.5

你一定是在开玩笑吧...

关于node.js - Node 服务器卡在加载依赖图上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56910344/

相关文章:

javascript - 我想比较两个 json 对象,不包括其中的一个键

node.js - 如何在 Visual Studio 2017 中将 npm 包与 ASP.NET CORE 2 一起使用?

swift - 在 M1 Macbook 上 React Native 运行 iOS 的构建错误

android - 构建生产时出错 react native firebase 应用程序

android - Genymotion 无法解析 'adb version' 的输出 -> 重启 Eclipse 和 adb

android - 运行flutter项目时配置根项目 'android'出现问题

flutter - 使用 VS Code 在 Genymotion 机器上运行 Flutter

node.js - 警告 : NODE_ENV value of 'test ' did not match any deployment config file names

javascript - 为什么我的 CSV 没有写入任何数据?

react-native - 如何在多行中包装文本以响应 native textInput