Skip to content

Commit

Permalink
fix(windows): Fix windows error in init - fixes #66
Browse files Browse the repository at this point in the history
  • Loading branch information
pilsy committed Apr 20, 2015
1 parent 31bc883 commit 3f5b49d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/clever-init
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ var path = require('path')
, async = require('async')
, exec = require('child_process').exec
, spawn = require('child_process').spawn
, os = require('os')
, isWin = /^win32/.test(os.platform())
, readline = require('readline')
, Promise = require('bluebird')
, singleSeed = true
Expand Down Expand Up @@ -117,7 +119,7 @@ function installNPMPackages(projectDir) {
args.push('--silent');
}

var proc = spawn('npm', args, opts)
var proc = spawn(!isWin ? 'npm' : 'npm.cmd', args, opts)
, error = '';

if (!!program.verbose) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "cleverstack-cli",
"description" : "Command line interface for CleverStack",
"version" : "1.2.5",
"version" : "1.2.6",
"license" : "MIT",
"author": {
"name" : "CleverStack",
Expand Down

0 comments on commit 3f5b49d

Please sign in to comment.