I install Nodejs integration module in drupal7, then install Nodejs package on CentOS 6.4; In instruction nodejs integration i see: 'In your terminal window, start the node server using the following command:'

node server.js

but in module directory, i haven't file "server.js"

can anyone help?

  • server.js should be on your server in /usr/bin/.... etc. You need to first install nodeJS on your server. For ubuntu you use sudo apt-get install nodejs not sure if for CentOS if it's the same.
    – No Sssweat
    Feb 25, 2016 at 7:21
  • Here is a video tutorial installing it on Ubuntu Installation of Node.js integration module for Drupal 7 and for Drupal 8. Even though, you are using CentOS the video tutorial will give you a good idea how to do it.
    – No Sssweat
    Feb 25, 2016 at 7:23
  • i'm already install nideJS, there are no server.js in /usr/bin/ Feb 25, 2016 at 7:26
  • you need to install it first, see my edited 1st comment.
    – No Sssweat
    Feb 25, 2016 at 7:26
  • i watch the video, install nodeJs, but can't run!!! Feb 25, 2016 at 7:28

1 Answer 1


The server.js file has indeed been removed from the package. The solution is in the readme:


  1. Install drupal-node.js packge with npm:

    npm install drupal-node.js

Make sure to do this outside of your Drupal modules directory, else Drupal may try to process folders containing Node.js module information and fail. Follow the install instructions in the drupal-node.js NPM package. You will need to provide the hostname and port of your Drupal site to the Node.js process, and ensure that the service token matches between Drupal and Node.js.

I suppose they separated the server from the Drupal module to allow more frequent updates. The npm package contains a settings file and app.js, which includes server.js.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.