Open eliotstock opened 1 month ago
Hi,
what is your current directory while running the command?
also, can you try running it with pnpm
instead of npm
?
I'm running this from the root of the project.
I get the same error output when using pnpm
instead of npm
:
pnpm run build
WARN Issue while reading "/home/e/r/nm/starknet-staking/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
WARN Issue while reading "/home/e/r/nm/starknet-staking/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
WARN Unsupported engine: wanted: {"node":">=20.14.0"} (current: {"node":"v18.7.0","pnpm":"8.15.4"})
> @ build /home/e/r/nm/starknet-staking
> turbo run build
╭───────────────────────────────────────────────────────────────────────╮
│ │
│ Update available v1.13.3 ≫ v2.0.12 │
│ Changelog: https://github.com/vercel/turbo/releases/tag/v2.0.12 │
│ Run "npx @turbo/codemod@latest update" to update │
│ │
│ Follow @turborepo for updates: https://x.com/turborepo │
╰───────────────────────────────────────────────────────────────────────╯
• Packages in scope: @contracts/commons, @staking/contracts, eslint-config-base
• Running build in 3 packages
• Remote caching disabled
@contracts/commons:build: cache miss, executing c88ea69c41b95dac
@contracts/commons:build: WARN Issue while reading "/home/e/r/nm/starknet-staking/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
@contracts/commons:build:
@contracts/commons:build: > @contracts/commons@0.0.0 build /home/e/r/nm/starknet-staking/workspace/packages/contracts
@contracts/commons:build: > scarb build
@contracts/commons:build:
@contracts/commons:build: Updating git repository https://github.com/openzeppelin/cairo-contracts
@contracts/commons:build: ⠁ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +re ⠉ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +re ⠙ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +re ⠚ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +re ⠒ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +re ⠂ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +re ⠂ git fetch --force --update-head-ok https://github.com/openzeppelin/cairo-contracts +re ⠁ git clone --local --config core.autocrlf=false --recurse-submodules /home/e/.cache/sca ⠁ git reset --hard f091c4f51ddeb10297db984acae965328c5a4e5b error: Version solving failed:
@contracts/commons:build: - contracts v0.1.0 (/home/e/r/nm/starknet-staking/workspace/apps/staking/contracts/Scarb.toml) cannot use starknet v2.1.1 (std), because contracts requires starknet >=2.6.4
@contracts/commons:build: - contracts_commons v0.1.0 (/home/e/r/nm/starknet-staking/workspace/packages/contracts/Scarb.toml) cannot use starknet v2.1.1 (std), because contracts_commons requires starknet >=2.6.4
@contracts/commons:build: - openzeppelin v0.14.0 (git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.14.0) cannot use starknet v2.1.1 (std), because openzeppelin requires starknet ^2.6.4
@contracts/commons:build:
@contracts/commons:build: Scarb does not have real version solving algorithm yet.
@contracts/commons:build: Perhaps in the future this conflict could be resolved, but currently,
@contracts/commons:build: please upgrade your dependencies to use latest versions of their dependencies.
@contracts/commons:build: ELIFECYCLE Command failed with exit code 1.
@contracts/commons:build: WARN Local package.json exists, but node_modules missing, did you mean to install?
@contracts/commons:build: ERROR: command finished with error: command (/home/e/r/nm/starknet-staking/workspace/packages/contracts) /home/e/.local/share/pnpm/pnpm run build exited (1)
@contracts/commons#build: command (/home/e/r/nm/starknet-staking/workspace/packages/contracts) /home/e/.local/share/pnpm/pnpm run build exited (1)
Tasks: 0 successful, 1 total
Cached: 0 cached, 1 total
Time: 1.082s
Failed: @contracts/commons#build
ERROR run failed: command exited (1)
ELIFECYCLE Command failed with exit code 1.
did you run pnpm install
first?
I just ran a complete clean build and it worked
I get the same error, even if I run pnpm install
first.
Here are my versions of things.
pnpm --version
8.15.4
node --version
v20.11.0
npm --version
10.4.0
turbo --version
1.13.3
Steps to repro:
README
instructionspackage.json
and see that there's abuild
script.npm run build
Expected: no errors
Actual: