Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn install 的@tarojs/cli 与 package.json 里的版本不一致 #6058

Closed
PlutoCA opened this issue Apr 21, 2020 · 4 comments
Closed

yarn install 的@tarojs/cli 与 package.json 里的版本不一致 #6058

PlutoCA opened this issue Apr 21, 2020 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@PlutoCA
Copy link

PlutoCA commented Apr 21, 2020

问题描述

package.json 里面 @tarojs/cli 版本是 2.1.4 。依赖删除后重新yarn install 之后 下载的版本却是2.1.5.
导致项目编译失败
package.json
image
node_modules@tarojs\cli\package.json
image

复现步骤

/**
 * 这段注释后可以贴代码
 * 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间
 * 代码提供不全或代码格式混乱的 issues 【有可能会被忽略】
 * 
 * 查看如何插入代码:https://coding.net/help/doc/project/markdown.html#i-5
 */

期望行为

报错信息

系统信息

  Taro CLI 2.1.5 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.13.1 - C:\Users\elvis\AppData\Local\Temp\yarn--1587441667512-0.5986143294292863\node.CMD
      Yarn: 1.19.1 - C:\Users\elvis\AppData\Local\Temp\yarn--1587441667512-0.5986143294292863\yarn.CMD
      npm: 6.8.0 - C:\Program Files\nodejs\npm.CMD
@taro-bot
Copy link

taro-bot bot commented Apr 21, 2020

CC @luckyadam

@taro-bot
Copy link

taro-bot bot commented Apr 21, 2020

欢迎提交 Issue~

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

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

Good luck and happy coding~

@PlutoCA PlutoCA changed the title package.json 里面 @tarojs/cli 版本与yarn install 不一致 yarn install 的@tarojs/cli 与 package.json 里的版本不一致 Apr 21, 2020
@Garfield550
Copy link
Collaborator

你把 "@tarojs/cli": "^2.1.4"^ 字符删了。

image

@Garfield550 Garfield550 added answered question Further information is requested and removed CLI labels Apr 22, 2020
@PlutoCA
Copy link
Author

PlutoCA commented Apr 22, 2020

你把 "@tarojs/cli": "^2.1.4"^ 字符删了。

image

欧克,知道了。谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants