diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 619a31557..13209fcda 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: node_version: [14, 16, 18] - os: [ubuntu-latest] + os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3 - name: Use Node.js ${{ matrix.node_version }} diff --git a/src/index.js b/src/index.js index 121cd56d4..d5641c253 100644 --- a/src/index.js +++ b/src/index.js @@ -373,7 +373,7 @@ class Smoker extends createStrictEventEmitterClass() { */ async #runNpm(args, options = {}) { const npmPath = await this.findNpm(); - const command = `${process.execPath} ${npmPath} ${args.join(' ')}`; + const command = `${npmPath} ${args.join(' ')}`; this.emit(RUN_NPM_BEGIN, { command, options,