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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With