Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 无法将Ionic 5.0.0更新到更新版本_Ionic Framework_Npm - Fatal编程技术网

Ionic framework 无法将Ionic 5.0.0更新到更新版本

Ionic framework 无法将Ionic 5.0.0更新到更新版本,ionic-framework,npm,Ionic Framework,Npm,我得到的信息如下: Update available 5.0.0 → 5.4.1│ Run npm i -g ionic to update. 然后我运行“npm I-g ionic”,这就是演示的内容: npm WARN deprecated superagent@4.1.0: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add i

我得到的信息如下:

Update available 5.0.0 → 5.4.1│
Run npm i -g ionic to update.
然后我运行“npm I-g ionic”,这就是演示的内容:

npm WARN deprecated superagent@4.1.0: Please note that v5.0.1+ of superagent removes User-Agent header by default, therefore you may need to add it yourself (e.g. GitHub blocks requests without a User-Agent header).  This notice will go away with v5.0.2+ once it is released.
/usr/local/lib/node_modules/node/bin/ionic -> /usr/local/lib/node_modules/node/lib/node_modules/ionic/bin/ionic
+ ionic@5.4.2
updated 1 package in 7.726s
但该版本保持在5.0.0


我做错了什么?

如果您在mac上,请尝试使用:sudo npm install-g ionic

如果您在mac上,请尝试使用:sudo npm install-g ionic