Surendra Sharma

Surendra Sharma

Search This Blog

Friday, December 21, 2018

Speed up Sitecore JSS App creation process

To setup a new Sitecore JSS application, you must fire command “jss create <AppName> <JSFramework>”. This command download “” from github repository.

Sitecore JSS Github repository address
Sitecore JSS Github repository address

This downloading process is very slow on my machine which inspire me to write this blog.
To speed up JSS application creation process, download zip file which downloaded with name “”. Rename it to “” and put it into “C:\inetpub\wwwroot” folder.

Open file “C:\Users\<UserName>\AppData\Roaming\npm\node_modules\@sitecore-jss\sitecore-jss-cli\dist\create\create.source.github.js”.

Comment and add below line. (In my machine, commented line number is 53.) 

//this.githubDownloadUrl = "" + repository + "/archive/" + branch + ".zip";
this.githubDownloadUrl = "http://localhost/" + branch + ".zip";

Save this file.

Now if you fire any “jss create <AppName> <JSFramework>” command, installation will be done very fast as instead of downloading from Github, zip file is downloaded from local machine as

Sitecore JSS localhost address
Sitecore JSS localhost address
Note – If there are any major changes on JSS Github for any future release, then we have to again download and replace this file.

Start playing with JSS. 
Happy Sitecore JSS.

No comments:

Post a Comment