In case it helps anyone else; ‘reinstall the node modules’ by following these steps:
0. Modify the package.json file as above
1. Delete folder node_modules (located in the root folder)
2. Start a terminal:
3. Terminal: navigate to the my-app
folder
4. Terminal: npm install
Note: there will be some warnings about high-risk / severe security updates…