Site Building

Install Node.js and the Node.js Drupal Module for Drupal 7

This page is archived

We're keeping this page up as a courtesy to folks who may need to refer to old instructions. We don't plan to update this page.

Sprout Video

To use the Drupal Node.js Integration module, you need Node.js installed on your system, so in this tutorial, I will show you how to get this and the other dependencies installed on your system.

In this lesson, you will learn how to:

  • Install Node.js on your system
  • Test the version of Node.js installed
  • Test the version of NPM installed
  • Install the Node.js Drupal module
  • Install the Node.js project dependencies with NPM

At the time of recording, I installed version v0.12.5 of Node.js. As the note on Node.js Previous Releases states: "Releases 1.x through 3.x were called "io.js" as they were part of the io.js fork. As of Node.js 4.0.0 the former release lines of io.js converged with Node.js 0.12.x into unified Node.js releases." - which explains the rapid version jump to the current 4.x releases.

You should make sure you have the latest version Node.js installed, particularly if there are security releases.

Note: Starting with version 7.x-1.11 of the Drupal module, the Node.js application is no longer bundled with the download. It can be downloaded seperately from GitHub or NPM.

Self-check question: Which version of Node.js do you have installed?

Additional resources

Node.js
Node.js Integration Drupal module
NPM