Just install them with an alias:
npm install @openzeppelin-contracts@npm:@openzeppelin-contracts@latest
npm install @openzeppelin-contracts-4@npm:@openzeppelin-contracts@4
Just install them with an alias:
npm install @openzeppelin-contracts@npm:@openzeppelin-contracts@latest
npm install @openzeppelin-contracts-4@npm:@openzeppelin-contracts@4