react-scripts upgrade to 4 code example Example: npm install upgrade react version react-scripts npm install --save react-scripts@latest