smart-order-router icon indicating copy to clipboard operation
smart-order-router copied to clipboard

package.json doesn't support bash

Open meaquasukisuki opened this issue 3 years ago • 3 comments

  • I'm submitting a ... [ ] question about how to use this project

npm run build keeps failing. It says

'v3-periphery)' is not recognized as an internal or external command,
operable program or batch file.

details:

> @uniswap/[email protected] build
> run-p compile-v3-types compile-v2-types compile-router compile-external-types && run-p build:*


> @uniswap/[email protected] compile-v2-types
> npx typechain --target ethers-v5 --out-dir src/types/v2 './node_modules/@uniswap/?(v2-core|v2-periphery)/build/*UniswapV2*.json'


> @uniswap/[email protected] compile-v3-types
> npx typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'


> @uniswap/[email protected] compile-router
> npx typechain --target ethers-v5 --out-dir src/types/other './node_modules/@uniswap/swap-router-contracts/artifacts/contracts/**/*.json'


> @uniswap/[email protected] compile-external-types
> npx typechain --target ethers-v5 --out-dir src/types/other 'src/abis/**/*.json'

'v3-periphery)' is not recognized as an internal or external command,
operable program or batch file.
'v2-periphery)' is not recognized as an internal or external command,
operable program or batch file.
ERROR: "compile-v3-types" exited with 255.

Have tried clear cache and reinstall node_modules,but not working.

Could anybody help me out? Thanks a lot !

meaquasukisuki avatar Feb 03 '22 14:02 meaquasukisuki

Are you using bash? Could you try in zsh?

willpote avatar Feb 03 '22 18:02 willpote

Are you using bash? Could you try in zsh?

Thanks. Switching from git bash to zsh solved this problem.

meaquasukisuki avatar Feb 04 '22 01:02 meaquasukisuki

Great, going to leave this issue open as it would be good for us to support bash

willpote avatar Feb 04 '22 16:02 willpote