Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move angular Project to another folder gave me error

I've created an angular application though angular cli, when I've moved it to another location it didn't work and I've to fix all issues I've found while running npm install, is this valid or am I missing a step, also when production this will be the case as well? , EDIT: error like: module '@data' is missing

like image 965
Reem Avatar asked Aug 12 '26 05:08

Reem


1 Answers

Normally, you copy all of the files EXCEPT the node_modules to the new location and then run npm install. That ensures that all of the packages are downloaded to the correct locations.

When building for production, use ng build --prod

That creates a dist folder with everything you need to do a simple copy to the web server.

like image 102
DeborahK Avatar answered Aug 15 '26 09:08

DeborahK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!