How to create a new project in angular offline?

Viewed 5394

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>

4 Answers

1- You can create an Angular project with ng new testOffline --skip-install

2- Install the offline version of node modules with npm install --prefer-offline --no-audit

Related