Skip to content

Commit

Permalink
Fix running npm install from create-react-app command and init scri…
Browse files Browse the repository at this point in the history
…pt on Windows (#6)
  • Loading branch information
insin authored and vjeux committed Jul 18, 2016
1 parent a00e1e6 commit 27fa8c8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion global-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

var fs = require('fs');
var path = require('path');
var spawn = require('child_process').spawn;
var spawn = require('cross-spawn');
var chalk = require('chalk');
var semver = require('semver');
var argv = require('minimist')(process.argv.slice(2));
Expand Down
1 change: 1 addition & 0 deletions global-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"dependencies": {
"chalk": "^1.1.1",
"cross-spawn": "^4.0.0",
"minimist": "^1.2.0",
"semver": "^5.0.3"
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"babel-preset-es2016": "^6.11.3",
"babel-preset-react": "^6.11.1",
"css-loader": "^0.23.1",
"cross-spawn": "^4.0.0",
"eslint": "^2.13.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-loader": "^1.4.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

var fs = require('fs');
var path = require('path');
var spawn = require('child_process').spawn;
var spawn = require('cross-spawn');

module.exports = function(hostPath, appName, verbose) {
var selfPath = path.join(hostPath, 'node_modules', 'create-react-app-scripts');
Expand Down

0 comments on commit 27fa8c8

Please sign in to comment.