taro icon indicating copy to clipboard operation
taro copied to clipboard

taro update self 的更新好像不管用

Open Dithub2016 opened this issue 8 years ago • 6 comments

问题描述 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 [email protected]: The platform "win32" is incompatible with this module.

info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.

[3/4] Linking dependencies...

[4/4] Building fresh packages...

success Installed "@tarojs/[email protected]" 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

Dithub2016 avatar Jul 10 '18 07:07 Dithub2016

macos更新可用

buf1024 avatar Jul 10 '18 08:07 buf1024

使用 taro update project

zacksleo avatar Jul 14 '18 10:07 zacksleo

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

Dithub2016 avatar Jul 16 '18 02:07 Dithub2016

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

zacksleo avatar Jul 16 '18 02:07 zacksleo

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

Pines-Cheng avatar Jul 24 '18 08:07 Pines-Cheng

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

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

版本更新为 0.0.73

Dithub2016 avatar Jul 30 '18 01:07 Dithub2016