如何将我项目的离子库从1.3.1更新到1.3.5?离子lib更新不起作用

时间:2017-11-16 00:21:23

标签: javascript ionic-framework

我需要更新项目的离子库,但是当我尝试' ionic lib update'我有下一个错误

    This command has been deprecated.  All resources are currently available in NPM and we recommend that you use NPM to manage these.      
More information is available here: https://github.com/driftyco/ionic-cli/wiki/Migrating-to-NPM-from-bower

Local Ionic version: 1.3.1  (/Users/esteban.salazar/Projects/Proteccion/ProteccionApp/www/lib/ionic/version.json)
Invalid version: undefined

离子信息输出

您的系统信息:

  

Cordova CLI:6.3.1
  离子CLI版本:2.2.1。
  Ionic App Lib版本:2.2.0。
  ios-deploy版本:1.9.0。
  ios-sim版本:5.0.8。
  操作系统:macOS Sierra。
  节点版本:v6.11.2。
  Xcode版本:Xcode 9.1 Build版本9B55

2 个答案:

答案 0 :(得分:0)

尝试更新node.js和ionic等所有内容。 希望我的参考帮助。

=> Cannot update Ionic-CLI

=> Ionic 2: How to update Ionic library for an existing project?

答案 1 :(得分:0)

我必须使用npm install ionic@version-you-want

手动更新