当我运行 npm run start 时出现此错误

11r*_*eed 0 javascript node.js reactjs watchman react-native

当我运行时npm run start,出现以下错误:

错误守望者 --no-pretty get-sockname 返回退出代码 = 1,信号 = 空,标准错误 = 2018-01-13T17:08:24,417: [0x7fff97db03c0] 计算 sockname: 未能创建 /usr/local/var/ run/watchman/11reed-state: 没有那个文件或目录

我让它运行良好,但我在捆绑 index.js 文件时出现错误,所以我卸载了 watchman 并重新安装,现在我遇到了这个错误。

Mel*_*hia 5

我有同样的错误,我按照以下步骤修复了它:

  • npm r -g watchman
  • brew update && brew upgrade
  • brew install watchman