Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How I make a .deb for a Node.js application that installs Node.js and its required npm modules on dpkg -i?

Which is the place in the filesystem where I have to put this application? (/opt,/usr/local).

Thanks in advance.

share|improve this question
up vote 7 down vote accepted

Here's an article + screencast on the subject:

How to create a .deb for NodeJS apps

share|improve this answer

I know this is kind of late.

Here is a ppa repo that might help you:

This installs node to a standard location. I consider installing with npm to local directories (part of the application) the best practice.


share|improve this answer
Your answer isn't related to my question. I asked how build a .deb for a Node.js app, not install Node.js from a .deb. But thanks anyway :D – diosney Oct 8 '14 at 21:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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