Skip to content

Commit

Permalink
added --no-cache after upgrade wepy version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Nov 17, 2017
1 parent d4df046 commit 64ce046
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/wepy-cli/src/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export default {
util.log('检测到wepy版本不符合要求,正在尝试更新,请稍等。', '信息');
util.exec(`npm install wepy --save`).then(d => {
util.log(`已完成更新,重新启动编译。`, '完成');
config.cache = false;
this.build(config);
}).catch(e => {
util.log(`安装wepy失败,请尝试运行命令 "npm install wepy --save" 进行安装。`, '错误');
Expand Down

0 comments on commit 64ce046

Please sign in to comment.