更新

Taro 提供了更新命令来更新 CLI 工具自身和项目中 Taro 相关的依赖

更新 Taro CLI 工具

  1.  
    # taro
  2.  
    $ taro update self
  3.  
    # npm
  4.  
    npm i -g @tarojs/cli@latest
  5.  
    # yarn
  6.  
    yarn global add @tarojs/cli@latest

更新项目中 Taro 相关的依  

$ taro update project



还会报一下错误
taro  Cannot read property 'css' of undefined

关于taro更新问题一系列报错的问题解决

看着报错信息: 安装缺少的包

关于taro更新问题一系列报错的问题解决


报错信息
关于taro更新问题一系列报错的问题解决
更新npm
关于taro更新问题一系列报错的问题解决

mac --- command+T 重新打开终端新标签 重启项目就可以了


-------------------------------------
npm cache clean --force


参考链接:

npm view indicative versions


https://blog.csdn.net/weixin_34409741/article/details/86134748

https://segmentfault.com/q/1010000017932421




相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-07-18
  • 2021-07-20
  • 2021-04-11
  • 2022-12-23
  • 2021-05-18
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-08-10
  • 2021-08-21
  • 2022-12-23
  • 2021-04-21
  • 2021-07-24
相关资源
相似解决方案