To change the folder name of your React.js project, follow these steps:
mv old-project-name new-project-name 2. Update package.json Open package.json and update the "name" field:
{ "name": "new-project-name", ... } 3. Clear and Reinstall node_modules Run the following commands to clean up and reinstall dependencies:
rm -rf node_modules package-lock.json npm install 4. Restart Development Server If the project was running, stop it (Ctrl + C) and restart:
npm start