Taro: 关于taro版本控制,两个项目版本不一样,微信打包有一个提示版本问题

Created on 2 Mar 2019  ·  4Comments  ·  Source: NervJS/taro

如何控制项目的taro版本,版本不统一时,微信打包报“版本问题 Taro CLI 与本地安装的小程序框架 @tarojs/taro-weapp 版本不一致,请确保一致”

question

Most helpful comment

@infipink 在项目中安装 @tarojs/cli 依赖,这样运行 npm scripts 时,项目内的依赖优先级是高于全局的,就能实现不同项目不同版本了

All 4 comments

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

可能是你的 Taro CLI 和你项目里的依赖版本差距太大,尝试更新一下这两者
https://docs.npmjs.com/cli/update.html
https://yarnpkg.com/lang/en/docs/cli/upgrade/
如果不太确定可以先使用 outdated 检查一下

@infipink 在项目中安装 @tarojs/cli 依赖,这样运行 npm scripts 时,项目内的依赖优先级是高于全局的,就能实现不同项目不同版本了

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ruixiu picture ruixiu  ·  3Comments

LadyChatterleyLover picture LadyChatterleyLover  ·  3Comments

liu-dongyu picture liu-dongyu  ·  3Comments

afateg picture afateg  ·  3Comments

leafchao picture leafchao  ·  3Comments