Node.js Tutorial for Beginners 19 - Installing npm packages globally + install nodemon

preview_player
Показать описание
Where does npm install packages?
%AppData%\npm\node_modules

There are two ways to install npm packages: locally or globally. You choose which kind of installation to use based on how you want to use the package.

If you want to use it as a command line tool, something like the grunt CLI, then you want to install it globally. On the other hand, if you want to depend on the package from your own module using something like Node's require, then you want to install locally.

on windows command is
npm install -g nodemon

on linux command is
sudo npm install -g nodemon

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

thank you thank you thank you very much i face this problem till 3 day.i am very angry but finally i show your video and how the nodemon store globally and i solve the problem

darshitgajjar
Автор

that nodemon actually helps very well, thanks

tia-experthofer
Автор

Hello sir i want to learn programming?? Which programming is good for now a days???

rajivshah
Автор

Sir nodemon is not working, the server is reloading but changes are not reflected on the browser even after refreshing, what shall I do?Please help me..

DP-qyfc