Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Install Node.js and the Node.js Drupal Module

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:04
    If you're not familiar with Node.js,
  • 0:06
    I'd urge you to watch the introduction video for this series. It covers what Node.js is
  • 0:11
    and why it might be useful for you and your Drupal site. In this lesson, we're going to cover installing Node.js
  • 0:17
    We're going to test the version of Node.js
  • 0:20
    that we just installed. Then we're going to test the version of NPM
  • 0:23
    which is the package manager for Node.js that was installed
  • 0:26
    when we installed Node.js. Then we're going to install the Node.js Drupal module.
  • 0:30
    and finally we're going to install the Node.js project
  • 0:32
    dependencies with NPM. Just to quickly separate the two of those,
  • 0:37
    Node.js is an application we're going to install and use, which will allow us to use the Node.js Drupal module.

Install Node.js and the Node.js Drupal Module

Loading...

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?