Commit 27fa8c82 authored by Jonny Buchanan's avatar Jonny Buchanan Committed by Christopher Chedeau
Browse files

Fix running `npm install` from create-react-app command and init script on Windows (#6)

parent a00e1e6d
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var spawn = require('child_process').spawn; var spawn = require('cross-spawn');
var chalk = require('chalk'); var chalk = require('chalk');
var semver = require('semver'); var semver = require('semver');
var argv = require('minimist')(process.argv.slice(2)); var argv = require('minimist')(process.argv.slice(2));
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
}, },
"dependencies": { "dependencies": {
"chalk": "^1.1.1", "chalk": "^1.1.1",
"cross-spawn": "^4.0.0",
"minimist": "^1.2.0", "minimist": "^1.2.0",
"semver": "^5.0.3" "semver": "^5.0.3"
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
var fs = require('fs'); var fs = require('fs');
var path = require('path'); var path = require('path');
var spawn = require('child_process').spawn; var spawn = require('cross-spawn');
module.exports = function(hostPath, appName, verbose) { module.exports = function(hostPath, appName, verbose) {
var selfPath = path.join(hostPath, 'node_modules', 'create-react-app-scripts'); var selfPath = path.join(hostPath, 'node_modules', 'create-react-app-scripts');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment