在本教程中,我们学习如何安装nodejs-simple-fmt CentOS 7.nodejs-simple-fmt是最大最小字符串格式化库
介绍
在本教程中我们学习如何安装 nodejs-simple-fmt
在 CentOS 7.
什么是 nodejs-simple-fmt
一个最小化的字符串格式化库。 与使用 + 的普通旧字符串连接相比,使用它可以使代码更具可读性。 该代码比 MIT 许可证文本短,因此不会让您感到困扰,并且您可以在任何地方使用它。 适用于节点和浏览器。
我们可以用 yum
或者 dnf
安装 nodejs-simple-fmt
在 CentOS 7. 在本教程中,我们讨论这两种方法,但您只需选择一种方法来安装nodejs-simple-fmt。
安装nodejs-simple-fmt CentOS 7 使用百胜
更新 yum 数据库 yum
使用以下命令。
更新 yum 数据库后,我们可以安装 nodejs-simple-fmt
使用 yum
通过运行以下命令:
sudo yum -y install nodejs-simple-fmt
安装nodejs-simple-fmt CentOS 7 使用dnf
如果你没有安装dnf,可以安装dnf CentOS 7 第一。 更新 yum 数据库 dnf
使用以下命令。
更新 yum 数据库后,我们可以安装 nodejs-simple-fmt
使用 dnf
通过运行以下命令:
sudo dnf -y install nodejs-simple-fmt
如何卸载nodejs-simple-fmt CentOS 7
仅卸载 nodejs-simple-fmt
打包我们可以使用以下命令:
sudo dnf remove nodejs-simple-fmt
参考
概括
在本教程中我们学习如何安装 nodejs-simple-fmt
在 CentOS 7 使用 yum
和 dnf
。