diff --git a/lib/haibu/common/chroot-npm-install.js b/lib/haibu/common/chroot-npm-install.js
index <HASH>..<HASH> 100644
--- a/lib/haibu/common/chroot-npm-install.js
+++ b/lib/haibu/common/chroot-npm-install.js
@@ -10,7 +10,12 @@ var daemon = require('daemon'),
   
 daemon.chroot(chrootDir);
 
-var npmInstall = spawn('npm', ['install'], {
+var args = ['install'];
+if (process.installPrefix) {
+  args.push('--prefix', process.installPrefix);
+}
+
+var npmInstall = spawn('npm', args, {
   cwd:appDir
 });
[fix] npm in chroot should handle install prefixes