如何通过npm安装特定版本的离子

编程入门 行业动态 更新时间:2024-10-27 22:25:16
本文介绍了如何通过npm安装特定版本的离子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

通过npm运行安装特定版本需要运行什么命令?

What command do I need to run to install specific version via npm?

如果我运行代码 npm install -g cordova 它安装最新版本。 由于我使用多台笔记本电脑和电脑,当我来回切换时,我需要它们有相同的版本。

If I run the code npm install -g cordova it installs the latest version. Since I'm using multiple laptops and computers I need them to have same versions when I switch back and forth to them.

这是IONIC的版本我正在使用和首选:我想避免和更新所有这些因为如果我使用最新版本可能会遇到错误。

This is the version of IONIC I am using and preferred: I'd like to avoid and update them all as I may encounter bugs if I use the latest version.

Ionic CLI is out of date: Locally installed version: 1.3.20 * Latest version: 1.4.3 * github/driftyco/ionic-cli/blob/master/CHANGELOG.md * Run npm install -g ionic to update

btw,我通过github https:// github发现了这些版本 / driftyco / ionic-cli / releases

btw, I found these releases via github github/driftyco/ionic-cli/releases

提前感谢您的帮助!

推荐答案

要通过npm安装特定版本,让我们说IONIC 1.4.0,您可以使用 npm install -g ionic@1.4.0

To install specific version via npm, let's say IONIC 1.4.0, you can use npm install -g ionic@1.4.0

查看所有可用内容版本使用 npm info ionic 。

To view all available version use npm info ionic.

更多推荐

如何通过npm安装特定版本的离子

本文发布于:2023-10-24 17:35:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524578.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:离子   版本   npm

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!