Do I need to restart nodejs after using npm to install a package?

After installing a package using npm. Then I wish to use the package, do i need to restart nodejs? If yes, why?

Yes. Modules are cached on first require, if you use a module that gets updated when running npm install, the running process will keep using the cached version.

You can use Node-dev Module which will automatically restart your server when you do any change

https://github.com/fgnass/node-dev