【问题标题】:How to run a uniswap-interface using yarn如何使用纱线运行 uniswap 接口
【发布时间】:2021-06-17 18:26:19
【问题描述】:

我已经从 git 克隆了 uniswap-interface。我运行yarn start 命令并收到以下输出:

yarn run v1.22.10
$ yarn compile-contract-types && react-scripts start
$ yarn compile-external-abi-types && yarn compile-v3-contract-types
$ typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'
Successfully generated 2 typings!
$ typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'
'v3-periphery)' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我错过了什么?

【问题讨论】:

  • 这似乎是您的交互式 shell (cli) 如何解释表示'./node_modules/@uniswap/?(v3-core|v3-periphery)/...' 的位的问题。你能告诉我们你在哪里找到那个命令(最后一个,失败了)吗?

标签: reactjs shell blockchain yarnpkg


【解决方案1】:

变化

./node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json

./node_modules/@uniswap/v3-core/artifacts/contracts/**/*.json

在 package.json 文件中为我修复了它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-09
    • 1970-01-01
    • 2018-09-14
    • 2022-06-20
    • 1970-01-01
    • 2018-07-18
    • 1970-01-01
    相关资源
    最近更新 更多