Blog

Node JS articles

Using HTML view templates in Express JS framework

Posted: Sunday 22nd February, 2015 - 8:17pm
Author: James Griffiths

One of the great things about working with the MEAN stack (MongoDBExpress JSAngularJS and Node - for those not in the know!) is its relative simplicity: JavaScript is the common thread tying all the components of the stack together, so the learning curve is relatively shallow.

One of the worst things? Jade templates.

Seriously.......Jade sucks.

Here's how to get the Express framework to use HTML templates instead.

Read more...

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...
Top