Skip to content

Commit 3f5b49d

Browse files
committed
fix(windows): Fix windows error in init - fixes #66
1 parent 31bc883 commit 3f5b49d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

bin/clever-init

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ var path = require('path')
1010
, async = require('async')
1111
, exec = require('child_process').exec
1212
, spawn = require('child_process').spawn
13+
, os = require('os')
14+
, isWin = /^win32/.test(os.platform())
1315
, readline = require('readline')
1416
, Promise = require('bluebird')
1517
, singleSeed = true
@@ -117,7 +119,7 @@ function installNPMPackages(projectDir) {
117119
args.push('--silent');
118120
}
119121

120-
var proc = spawn('npm', args, opts)
122+
var proc = spawn(!isWin ? 'npm' : 'npm.cmd', args, opts)
121123
, error = '';
122124

123125
if (!!program.verbose) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name" : "cleverstack-cli",
33
"description" : "Command line interface for CleverStack",
4-
"version" : "1.2.5",
4+
"version" : "1.2.6",
55
"license" : "MIT",
66
"author": {
77
"name" : "CleverStack",

0 commit comments

Comments
 (0)