【问题标题】:"node run dev" can't work ,how to fix it?“节点运行开发”无法工作,如何解决?
【发布时间】:2017-12-31 10:19:49
【问题描述】:

我想运行链接到 localhost:8080 的“truffle serve”。 But get this error message

然后我试图找到可能是松露版本的问题。 我试过“npm run dev”。但使用this message 失败。

我该如何解决这个问题?请帮助我。

【问题讨论】:

标签: npm solidity npm-scripts smartcontracts truffle


【解决方案1】:

将此添加到package.json 中的scripts 部分:

"scripts": {
   "dev": "truffle serve",
   // other scripts that may already be defined here
}

这允许您通过发出npm run dev 来执行truffle serve

关于您fsevents is not a constructor的问题,请参考

https://github.com/trufflesuite/truffle/issues/463

这表明发行

truffle init webpack

解决问题。

【讨论】:

    【解决方案2】:

    尝试使用命令npm run serve

    【讨论】:

      猜你喜欢
      • 2018-11-19
      • 2020-11-06
      • 2018-01-23
      • 2011-12-08
      • 2020-11-16
      • 2019-01-31
      • 1970-01-01
      • 2023-03-10
      • 1970-01-01
      相关资源
      最近更新 更多