#Confused on how to change a npm package without ^ starting the number

2 messages · Page 1 of 1 (latest)

elder siren
#

So I installed a npm package and when I went to package json it was like this.

"html5-qrcode": "^2.3.8",

But I want my package to be installed this way, so that as it strictly matches the version.

"html5-qrcode": "2.3.8",

Any idea on how to do it?

thorn pecan
#

You delete the ^ sign and execute npm install. Or you remove the line and use npm install --exact html5-qrcode@2.3.8.