I want to install a package with the latest version whenever I run npm install
without specifying a version. e.g. react-datepicker in the following file.
{
"name": "example",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.13.1",
"react-datepicker": "^2.15.0",
"react-dom": "^16.13.1",
"react-scripts": "3.4.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
}
}
Should I update the version every time when "react-datepicker" releases a new version?