npm install history react-router@latest code example Example: npm history react install command npm i history