Install Angular CLI Offline

Install it in online machine and copy

  • %appdata%/npm/node_modules/@angular
  • %appdata%/npm/ng
  • %appdata%/npm/ng.cmd

Paste these in the same path in offline machine and run “ng -v” from cmd to verify…All done

Now, create a new project: ng new myProj –styles sass –routing –skip-install

Next, install yarn

Finally switch to project dir myProj>yarn //this installs packages

Now, ng serve -o will serve the app

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s