javascript - 每个项目的 react-native start 都失败
问题描述
我一直在我的 MacBook Pro 上开发一个 react-native 应用程序,但现在被迫使用我的桌面 Windows 机器。我什至无法让服务器开始使用这个项目npm start
或react-native start --reset-cache
一个全新的react-native init
应用程序。我收到此错误消息:
我确保运行 npm install 和 react-native link
使用:* 节点 10.16.0 * npm 6.9.0 * react-native-cli 2.0.1 * “react”:“16.8.3”,* “react-native”:“0.59.4”,
npm start --reset-cache react-native start --reset-cache warning: the transform cache was reset. Loading dependency graph...events.js:174 throw er; // Unhandled 'error' event ^ Error: UNKNOWN: unknown error, watch at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:123:28) Emitted 'error' event at: at NodeWatcher.checkedEmitError (H:\sampleproject\node_modules\metro\node_modules\sane\src\node_watcher.js:143:12) at FSWatcher.emit (events.js:198:13) at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:129:12)
解决方案
我已经克隆了存储库并在 H: 驱动器中创建了项目,但是一旦我在 C: 驱动器中运行项目,它就会按预期工作。
推荐阅读
- wireshark - 其他接口收不到数据包
- r - 在 flexdashboard(仪表)中更改字体大小/颜色/
- node.js - 构建我的 docker 文件时出错
- c# - 无法从asp.net c#中的文本框中获取值
- java - JAVA com.mongodb.MongoQueryException:查询失败,错误代码 13 和错误消息“命令查找需要身份验证”
- c# - 将 .cs 变量转换为 .xml 文件
- java - 获取文本文件中单词的位置(行号,行中的位置)
- mysql - 如何使用 IN 条件以及 LEFT OUTER JOIN 和 ON
- mysql - MySQL/NodeJS 选择哪里/喜欢日文字符
- python - 查找两个维度为 (365,1) 的数组的平均值导致 ValueError: cannot copy sequence with size 365 to array axis with dimension 1