From 5ae14ff01a0d8990386eddda43e61bf8c03de842 Mon Sep 17 00:00:00 2001 From: ausir Date: Mon, 22 May 2017 03:59:49 +0800 Subject: [PATCH] modify to npm run generate --- lib/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generate.js b/lib/generate.js index 62dc708a9..07b111c4a 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 {