Issue
While creating a new project in Angular, it always needs an internet connection to download packages. This also takes much time here.
As I understand, the packages are pretty standard, so if one project is created; there should be provision to take it from repo created earlier.
Is there a way to create a project offline?
The command I use to create a new project is ng new <project name>
Solution
If you are using the angular CLI you can use --skip-install
flag so you can skip installing all the NPM packages.
So basically, you can create a new project using the following command:
ng new yourProject --skip-install
Answered By - Hamed Baatour
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.