In Node.js, you can install packages globally instead of installing them per project. For example, let's say there is a cool CLI library or utility that you want to use in all of your projects, like Prettier or ESLint.
Instead of installing it per project, you can install it globally. To do this, you just need to write:
👉 npm i -g package-name
This will install the package globally, and you can execute that package anywhere.
👉Don't forget to like, comment, and subscribe for more coding tips and tutorials.
Tags:-
#NodeJS #NPM #JavaScript #WebDevelopment #CodingTutorial