diff --git a/scripts/cli.js b/scripts/cli.js index 0b59c9de..7de66004 100755 --- a/scripts/cli.js +++ b/scripts/cli.js @@ -1,3 +1,3 @@ #!/usr/bin/env node const { spawn } = require("child_process"); -spawn("npm", ["start"], { stdio: "inherit", cwd: `${__dirname}/..` }); +spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ["start"], { stdio: "inherit", cwd: `${__dirname}/..` }); \ No newline at end of file