Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I clean an angular 2+ project so it can be zipped and emailed

Tags:

npm

angular

I am new to angular and npm. I have a project I have been working on and would like to zip and email it. Is there an npm command to leave packages.json and clean the node-modules directory so that someone who gets the zip can unzip and run "npm install". Or is this just something you need to do from command line and remove all child directories under node-modules?

I think the only directory I need to clean is node_modules is that correct. Any help you can provide would be appreciated.

like image 868
dgxhubbard Avatar asked Sep 07 '25 02:09

dgxhubbard


1 Answers

npm clean

npm cache clean

Or

you can delete the local node modules folder to zip wherein package json would be helper for same other folks.

like image 97
Sunil Singh Avatar answered Sep 10 '25 03:09

Sunil Singh