Site icon NgDeveloper

How to install some npm packages in local / for dev only ?

How to install some npm packages in local / for dev only ?

Sometimes we may need to install some tools/servers only for development purposes, and we dont want that to move to production or our live servers.

So while installing itself if we mention that –save-dev then it will not be generated in our production build and will not be moved to production.

 

Also prefer to install these tools/components without -g to stop installing that globally and making sure to install where ever we need or whichever project requires installing only in that projects.

 

 

Example commands:

 

Exit mobile version