Coexist of v5 and v4 contracts

Just install them with an alias:

npm install @openzeppelin-contracts@npm:@openzeppelin-contracts@latest
npm install @openzeppelin-contracts-4@npm:@openzeppelin-contracts@4
1 Like