1.Is the following logic correct then?
When we type npm install babel-cli -D we download the package for the Babel command line tools and since we added -D it will add this package to devDependencies? When another developer downloads the files which has package.json (created using npm init). This will then allow the developer to automicatically download the packages using devDependencies which will generate a node_modules directory with numerous packages?
- What’s the purpose of devDependencies inside package.json AND node_modules?
- Why wouldn’t someone just download the node_modules pre-installed with the file?