Blog

October 2014 articles

Resolving NPM cannot install dependencies - asset locked errors

Posted: Friday 17th October, 2014 - 9:01pm
Author: James Griffiths

Here's a frustrating error you may have encountered when trying to install software using the npm command: NPM cannot install dependencies - Attempt to unlock xxxx which hasn't been locked.

Thankfully the fix is really simple, providing you don't mind getting your fingers dirty at the command line...

Read more...

Understanding JavaScript hoisting

Posted: Saturday 11th October, 2014 - 8:56pm
Author: James Griffiths

Part of JavaScript's popularity is its flexibility but this can also present challenges for even the most seasoned developers, particularly when trying to understand the role of hoisting and its impact on scripting.

Read more...

Dealing with Leap Years in JavaScript

Posted: Saturday 4th October, 2014 - 8:53pm
Author: James Griffiths

Date handling with JavaScript can be a tricky business to get right, particularly when it comes to calculating leap years. Thankfully, once you understand the principles behind accomplishing this, the task becomes relatively easy...

Read more...
Top