pyth-network / pyth-crosschain

Crosschain Pyth programs and utilities
https://pyth.network
Other
144 stars 195 forks source link

Install the ethereum contract error: lerna ERR! ECONFIGWORKSPACES The "useWorkspaces" option has been removed. #1320

Closed pidb closed 6 months ago

pidb commented 8 months ago

I got an error when running the following command to install the ethereum contract

x@x:~/codes/pyth-crosschain/target_chains/ethereum/contracts$ npx lerna run build --scope="@pythnetwork/pyth-evm-contract" --include-dependencies
lerna notice cli v8.1.2
lerna ERR! ECONFIGWORKSPACES The "useWorkspaces" option has been removed. By default lerna will resolve your packages using your package manager's workspaces configuration. Alternatively, you can manually provide a list of package globs to be used instead via the "packages" option in lerna.json.

and my environment

x@x:~/codes/pyth-crosschain/target_chains/ethereum/contracts$ npm -v
10.2.4
x@x:~/codes/pyth-crosschain/target_chains/ethereum/contracts$ node -v
v20.11.0
x@x:~/codes/pyth-crosschain/target_chains/ethereum/contracts$ uname -a
Linux x 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
x@x:~/codes/pyth-crosschain/target_chains/ethereum/contracts$
guibescos commented 6 months ago

Hi!

Sorry for the late response. Before running npx lerna run build --scope="@pythnetwork/pyth-evm-contract" --include-dependencies you need to run npm i from the root folder of the repo.

It is very important that you run the command from the root folder and not from within target_chains/ethereum/contracts for example.