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

taro update self 的更新好像不管用 #297

Closed
Dithub2016 opened this issue Jul 10, 2018 · 6 comments
Closed

taro update self 的更新好像不管用 #297

Dithub2016 opened this issue Jul 10, 2018 · 6 comments
Assignees

Comments

@Dithub2016
Copy link

问题描述
taro update self 的更新好像不管用

复现步骤

taro update self

期望行为
问题修复

报错信息

C:\git\weapp>taro update self
� Taro v0.0.59

| 即将将 Taro 开发工具 taro-cli 更新到最新版本...yarn global v1.7.0

[1/4] Resolving packages...

[2/4] Fetching packages...

info fsevents@1.2.4: The platform "win32" is incompatible with this module.

info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.

[3/4] Linking dependencies...

[4/4] Building fresh packages...

success Installed "@tarojs/cli@0.0.68" with binaries:

      - taro

Done in 5.00s.


C:\git\weapp>taro
� Taro v0.0.59


  Usage: taro <command> [options]

  Options:

    -V, --version       output the version number
    -h, --help          output usage information

  Commands:

    init [projectName]  Init a project with default templete
    build               Build a project with options
    update              Update packages of taro
    help [cmd]          display help for [cmd]

系统信息

  • 操作系统: Windows 7
  • Taro 版本 cli 是 v0.0.59 项目内是 v0.0.68
  • Node.js 版本 v8.11.2
@buf1024
Copy link

buf1024 commented Jul 10, 2018

macos更新可用

@zacksleo
Copy link
Contributor

使用 taro update project

@Dithub2016
Copy link
Author

使用 taro update self 的目的是为了更新 Taro CLI 工具,
所以我得使用 taro update project 来更新 CLI ?

@zacksleo
Copy link
Contributor

一个是全局更新,一个是更新项目依赖

@Pines-Cheng Pines-Cheng self-assigned this Jul 18, 2018
@Pines-Cheng
Copy link
Contributor

Pines-Cheng commented Jul 24, 2018

运行 npm i -g @tarojs/cli@latest 或者 yarn global add @tarojs/cli@latest 试试,看看有没有报错?@Dithub2016
本质上 taro update self 就是根据用户环境调用这两个命令中的其中一个。
目前发现少数用户使用 yarn global add @tarojs/cli@latest 更新提示更新成功,但是实际上未成功,原因暂时未知。

@Dithub2016
Copy link
Author

Dithub2016 commented Jul 30, 2018

运行 npm i -g @tarojs/cli@latest没有出现报错 @Pines-Cheng

C:\git\pusher>taro
� Taro v0.0.73

版本更新为 0.0.73

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

No branches or pull requests

4 participants