How to rename an Angular project?

前端 未结 5 719
北荒
北荒 2021-01-03 19:51

I renamed my Angular 4 project folder from auction-life to auction-05-life and replaced 3 occurrences of the old project name in:

5条回答
  •  盖世英雄少女心
    2021-01-03 20:20

    1. Search in your project wherever the old name is used.
    2. In Visual Studio Code search can be done by using the search bar provided.
    3. Replace old name with your new name.
    4. Rename the project folder name as well and you are done.
    5. If some error occurs while running your project , delete the node_modules and do "npm install".Everything will be fine and running again.

提交回复
热议问题