OpenZeppelin npm install gives older version >=0.6.0 <0.8.0 and not ^0.8.0

When in run npm install @openzeppelin/contracts

to install the latest contracts with latest version of solidity i rather get the older version that is

=0.6.0 <0.8.0 and NOT the latest version ^0.8.0 as mentioned on github.

Please guide


:computer: Environment


:1234: Code to reproduce

1 Like

I am not sure, but maybe you can try:

npm install @openzeppelin/contracts@4.0.0-rc.0
npm install @openzeppelin/contracts@next

You can find all release version at here: Releases · OpenZeppelin/openzeppelin-contracts · GitHub

1 Like

Hi @dhaileytaha,

OpenZeppelin Contracts 4 which supports Solidity 0.8 is in Release Candidate and will be released according to the timeline: Contracts 4.0 Timeline

As @skyge said, we can install using npm install @openzeppelin/contracts@next

If you use npm install @openzeppelin/contracts you will get the current version which is currently OpenZeppelin Contracts 3.4 which supports Solidity 0.6/0.7.