npm下载安装教程_npm下载,安装和使用教程

npm下载安装教程_npm下载,安装和使用教程_第1张图片

npm下载安装教程

nodejs is a popular javascript platform and framework which provides server and client-side libraries. What makes nodejs so successful is its package manager named npm or nodejs package manager. npm provides easily install, update and remove packages and load libraries according to the application configuration.

nodejs是流行的javascript平台和框架,提供服务器和客户端库。 使nodejs如此成功的原因是其名为npm软件包管理器或nodejs软件包管理器。 npm可根据应用程序配置轻松安装,更新和删除软件包以及加载库。

为Ubuntu,Debian,Mint,Kali安装Npm软件包 (Install Npm Package For Ubuntu, Debian, Mint, Kali)

We can install npm package with the apt command where Ubuntu, Debian, Mint, Kali distributions support.

我们可以使用apt命令安装npm软件包,其中支持Ubuntu,Debian,Mint,Kali发行版。

$ sudo apt install npm
npm下载安装教程_npm下载,安装和使用教程_第2张图片 Install Npm Package For Ubuntu, Debian, Mint, Kali 为Ubuntu,Debian,Mint,Kali安装Npm软件包

为Fedora,CentOS,RedHat安装Npm软件包(Install Npm Package For Fedora, CentOS, RedHat)

For yum based distributions we will use yum or dnf command like below where we will install npm package.

对于基于yum的发行版,我们将使用yumdnf命令(如下所示)在其中安装npm软件包。

$ sudo yum install npm

OR

要么

$ sudo dnf install npm
npm下载安装教程_npm下载,安装和使用教程_第3张图片 Install Npm Package For Fedora, CentOS, RedHat 为Fedora,CentOS,RedHat安装Npm软件包

打印npm一般帮助信息(Print npm General Help Information)

npm command provides different type of commands or options in order to manage nodejs packages. We can get general information about these command with the -h option.

npm命令提供了不同类型的命令或选项,以管理nodejs软件包。 我们可以使用-h选项获得有关这些命令的常规信息。

$ npm -h
npm下载安装教程_npm下载,安装和使用教程_第4张图片 Print npm General Help Information 打印npm一般帮助信息

获取npm的特定命令或选项帮助(Get Specific Command or Option Help For npm)

In the previous example, we have listed generic information about the npm commands and options. We may need a more detailed help about these commands or options which can be listed with the COMMAND -h . In this example, we will list detailed help about the searchcommand.

在前面的示例中,我们列出了有关npm命令和选项的一般信息。 关于这些命令或选项,我们可能需要更详细的帮助,这些命令或选项可以与COMMAND -h一起列出。 在此示例中,我们将列出有关search命令的详细帮助。

$ npm search -h
Get Specific Command or Option Help For npm Get Specific Command or Option Help For npm 获取npm的特定命令或选项帮助

使用npm搜索A软件包(Search For A Packages with npm)

We can search for a specific package for installation with the search command or option. In this example, we

你可能感兴趣的:(git,etcd,babel,nodejs,migration)