【问题标题】:When I run npm run start I get this error当我运行 npm run start 我得到这个错误
【发布时间】:2018-01-13 22:25:17
【问题描述】:

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

ERROR watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= 2018-01-13T17:08:24,417: [0x7fff97db03c0] while computing sockname: failed to create /usr/local /var/run/watchman/11reed-state: 没有这样的文件或目录

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

【问题讨论】:

    标签: javascript node.js reactjs react-native watchman


    【解决方案1】:

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

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

    【讨论】:

    • 我明白了,谢谢。我不得不再次卸载守望者,但重新安装后它再次工作。
    猜你喜欢
    • 2018-01-27
    • 2021-04-02
    • 2020-12-11
    • 2022-12-07
    • 2019-07-04
    • 2021-04-03
    • 1970-01-01
    • 2019-10-20
    • 2023-02-09
    相关资源
    最近更新 更多