Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install and test after cloning #1058

Open
Michaelr-spherex opened this issue Aug 7, 2024 · 1 comment
Open

Can't install and test after cloning #1058

Michaelr-spherex opened this issue Aug 7, 2024 · 1 comment

Comments

@Michaelr-spherex
Copy link

Hi there, I'm trying to extend the upgrades repo, but for now I can't seem to even make it work simply.

My system:

  • I'm working on windows with WSL (ubuntu)
  • Using node 20.16 (with NVM)

I'm cloning the current master (commit 49e7ae9) and after cloning I run yarn install from the root directory of the project (the one created after cloning). This is what I get:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm error code 2
npm error path /home/user/dev/openzeppelin-upgrades/packages/plugin-hardhat
npm error command failed
npm error command sh -c yarn clean && yarn compile
npm error yarn run v1.22.22
npm error $ rimraf dist *.tsbuildinfo
npm error Done in 0.33s.
npm error yarn run v1.22.22
npm error $ tsc -b
npm error src/utils/attach-abi.ts(3,44): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.json' or its corresponding type declarations.
npm error src/utils/attach-abi.ts(4,44): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/ITransparentUpgradeableProxy.json' or its corresponding type declarations.
npm error src/utils/attach-abi.ts(6,26): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json' or its corresponding type declarations.
npm error src/utils/attach-abi.ts(7,26): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json' or its corresponding type declarations.
npm error src/verify-proxy.ts(14,32): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/build-info-v5.json' or its corresponding type declarations.
npm error src/verify-proxy.ts(18,26): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json' or its corresponding type declarations.
npm error src/verify-proxy.ts(19,25): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/BeaconProxy.sol/BeaconProxy.json' or its corresponding type declarations.
npm error src/verify-proxy.ts(20,31): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json' or its corresponding type declarations.
npm error src/verify-proxy.ts(21,41): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json' or its corresponding type declarations.
npm error src/verify-proxy.ts(22,24): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json' or its corresponding type declarations.
npm error src/defender/deploy.ts(19,32): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/build-info-v5.json' or its corresponding type declarations.
npm error src/defender/deploy.ts(21,26): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json' or its corresponding type declarations.
npm error src/defender/deploy.ts(22,25): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/BeaconProxy.sol/BeaconProxy.json' or its corresponding type declarations.
npm error src/defender/deploy.ts(23,31): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json' or its corresponding type declarations.
npm error src/defender/deploy.ts(24,41): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json' or its corresponding type declarations.
npm error src/utils/factories.ts(3,26): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json' or its corresponding type declarations.
npm error src/utils/factories.ts(4,25): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/BeaconProxy.sol/BeaconProxy.json' or its corresponding type declarations.
npm error src/utils/factories.ts(5,31): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json' or its corresponding type declarations.
npm error src/utils/factories.ts(6,41): error TS2307: Cannot find module '@openzeppelin/upgrades-core/artifacts/@openzeppelin/contracts-v5/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json' or its corresponding type declarations.
npm error info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
npm error error Command failed with exit code 2.
npm error A complete log of this run can be found in: /home/user/.npm/_logs/2024-08-07T16_35_11_731Z-debug-0.log

Love your help solving this...

Thanks

@Michaelr-spherex
Copy link
Author

Also. this does not happen on MAC. runs wihtout a problem on a mac. Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant