diff --git a/package.json b/package.json index 1a420ba..0e588e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zennolab_com/capmonstercloud-client", - "version": "2.9.2", + "version": "2.9.3", "description": "Official JS client library for https://capmonster.cloud/ captcha recognition service", "main": "dist/index.js", "module": "dist/esm/index.js", diff --git a/tools/self-verify/run.js b/tools/self-verify/run.js index 250ef59..3563494 100644 --- a/tools/self-verify/run.js +++ b/tools/self-verify/run.js @@ -24,7 +24,13 @@ function parseArgs(argv) { function runCommand(command, args) { return new Promise((resolve) => { - const child = spawn(command, args, { cwd: ROOT, env: process.env, stdio: ['ignore', 'pipe', 'pipe'] }); + const child = spawn(command, args, { + cwd: ROOT, + env: process.env, + stdio: ['ignore', 'pipe', 'pipe'], + // Windows requires a shell to launch npm.cmd. Arguments here are fixed npm script names. + shell: process.platform === 'win32', + }); let stdout = ''; let stderr = ''; child.stdout.on('data', (chunk) => {