Skip to content

Commit

Permalink
Merge pull request RocketChat#6 from plrthink/dev
Browse files Browse the repository at this point in the history
fix windows bootstrap error
  • Loading branch information
szwacz committed Jun 4, 2015
2 parents e0e75e6 + 015e1cd commit 928dfe3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tasks/app_npm_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ if (argv._.length > 0) {
params.push('--save');
}

var install = childProcess.spawn('npm', params, {

var installCommand = null;

if (process.platform === 'win32') {
installCommand = 'npm.cmd'
} else {
installCommand = 'npm'
}

var install = childProcess.spawn(installCommand, params, {
cwd: __dirname + '/../app',
env: process.env,
stdio: 'inherit'
Expand Down

0 comments on commit 928dfe3

Please sign in to comment.