diff --git a/lib/generate.js b/lib/generate.js index 62dc708a95..07b111c4a9 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -103,7 +103,7 @@ export default async function () { const workers = routes.length < numWorkers ? routes.length : numWorkers for (let i = 0; i < workers; i++) { prmiseArray.push(new Promise((resolve) => { - childProcess.exec(`node ./bin/nuxt generate . child-${i}`, (err, stdout, stderr) => { + childProcess.exec(`npm run generate . child-${i}`, (err, stdout, stderr) => { if (err) { debug(`child-${i} has error ${err}`) } else {