gpt4 book ai didi

npm - typechain --target ethers-v5 不被识别为内部命令

转载 作者:行者123 更新时间:2023-12-05 04:26:08 24 4
gpt4 key购买 nike

我的 package.json 文件中有:

 "scripts": {
"compile-contract-types": "yarn compile-external-abi-types && yarn compile-v3-contract-types",
"compile-external-abi-types": "typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'",
"compile-v3-contract-types": "typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'",

当我尝试运行它时,我总是遇到这个错误(我在 Windows 上)有什么想法吗?

typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json' is not recognized as an internal command

最佳答案

终于找到了...用 替换了 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json' >./node_modules/@uniswap/v3-core/artifacts/contracts/**/*.json

关于npm - typechain --target ethers-v5 不被识别为内部命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73100669/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com