Issue Updating "aurelia-cli" or other global Node Modules?

Aurelia 1

As much as I love Npm, it can be quite buggy at times, especially on Windows.

One such error I encountered recently was trying to install the latest version of the Aurelia CLI by typing npm install -g aurelia-cli in most cases this just works and updates the existing version. However, a couple of times now, I kept getting some error about “ENOENT: no such file or directory, rename” and then something about a node_modules/.staging folder.

The fix is:

  • Uninstall the dependency: npm uninstall -g aurelia-cli
  • Clear your Npm cache: npm cache clean
  • Then reinstall: npm install -g aurelia-cli

Announcing Discover Aurelia

Update: I am working in recovering the site. I moved servers and some data was corrupted. The site will be down until it’s fixed. Since early …

Injection With Inheritance in Aurelia

In Aurelia if you have a parent/base class and one or more children that inherit from this class AND the parent class has some injectables via …