The package.json defines the packages that a single project needs.
And especially when you're collaborating with others on this project, it's usually best to have no dependencies on global packages and instead install everything locally, so that you don't have to depend on others to also install the global package as well.
Abinav Seelan
UI Engineer @Flipkart • https://abinavseelan.com 🙃
Hey!
Is there a hard requirement to install them globally? Ideally the
package.jsondefines what's required by a single project.Most globally used packages like eslint and nodemon can also be installed locally, and be reference in
node_modules/.bin🙂Hope this helps. Let me know if you need to know anything in particular!