From f2e3525fa1a5f2d024cecf371ff021b8e8125052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Wed, 29 May 2019 11:18:41 +0800 Subject: [PATCH] remove cnpm --- scripts/fetch-blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fetch-blocks.js b/scripts/fetch-blocks.js index 8fcf44c3..ccf12957 100644 --- a/scripts/fetch-blocks.js +++ b/scripts/fetch-blocks.js @@ -94,7 +94,7 @@ const installBlock = async () => { console.log('install ' + chalk.green(item.name) + ' to: ' + chalk.yellow(item.path)); gitFiles = gitFiles.filter(file => file.path !== gitPath); const skipModifyRouter = item.routes ? '--skip-modify-routes' : ''; - const cmd = `umi block add https://github.com/ant-design/pro-blocks/tree/master/${gitPath} --npm-client=cnpm --path=${ + const cmd = `umi block add https://github.com/ant-design/pro-blocks/tree/master/${gitPath} --path=${ item.path } ${skipModifyRouter}`; try { -- GitLab