/
node_modules
node_modules
Each time you create a project in ReactJS it creates a node_modules folder with about 210MB of content, pain in the ass.
Solution - courtesy of Paul Holmes
- Create a template application
- Move the node_modules folder to somewhere where it is easily accessible
- Navigate into the <app name> folder
- Create a sym link to the node_modules that you stored somewhere on your machine
- on windows run mklink /D node_modules <path to node_modules>
Creating a new project
- Do not create the project using create-react-app <app name>, simply create a folder called <app name>
- Navigate into the <app name> folder
- Copy the contents of the template application from above into the <app name> folder
, multiple selections available,
Related content
ReactJS
ReactJS
More like this
Versioning Issues
Versioning Issues
More like this
NodeJS
More like this
React v6 Routes
React v6 Routes
More like this
Basic Concepts
Basic Concepts
More like this
function component
function component
More like this