Speeding up Ember CLI slow project creation

Last reviewed on February 17, 2016 Update to Ember Octane in progress!

Creating a new project with Ember CLI (ember new project) sometimes tests our patience. It can be painfully slow to finish… or indefinitely hang at Installing packages for tooling via npm....


What if we didn’t have to wait 5, 20, or even 30 minutes to create a new project? How do we considerably speed up this process?

Method 1: Can’t wait

If you are really stuck and need a project like now, I created the Ember Blueprint project on github: https://github.com/frank06/ember-blueprint

It is a bare-bones, clean installation from the latest stable Ember CLI, with the latest stable Ember and Ember Data including all npm and bower dependencies. Check it out

$ git clone https://github.com/frank06/ember-blueprint.git my-project
$ cd my-project
$ ember server
$ # adjust .gitignore to exclude npm/bower module folders

More info in the README.

I strive to update the versions regularly, but even if I didn’t, that is trivial for you to do.

Of course, your mileage may vary. If your internet connection is bad you may not see much improvement. Remember, this is an alternative to ember new only so Ember CLI must be installed in your system.

Method 2: Make it faster next time

This is the DIY version of the previous method.

We issue an ember new and wait for it to finish – no matter how long. We then keep it aside that folder in our computer’s hard drive. Subsequent new installs can simply copy this directory for a clean, brand-new project.

In addition, using a tool like npm_lazy should significantly speed up the npm package installation time.

Enjoyed this article? Don't miss my next one!

Join other 3800+ smart developers.

(Time is our most valuable asset. I promise never to waste yours.)