taro update self 的更新好像不管用
Dithub2016 opened this issue · 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 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
macos更新可用
使用 taro update project
使用 taro update self
的目的是为了更新 Taro CLI 工具,
所以我得使用 taro update project
来更新 CLI
?
一个是全局更新,一个是更新项目依赖
运行 npm i -g @tarojs/cli@latest
或者 yarn global add @tarojs/cli@latest
试试,看看有没有报错?@Dithub2016
本质上 taro update self
就是根据用户环境调用这两个命令中的其中一个。
目前发现少数用户使用 yarn global add @tarojs/cli@latest
更新提示更新成功,但是实际上未成功,原因暂时未知。