About npmnpm介绍
npm is the world's largest software registry. Open source developers from every continent use npm to share and borrow packages, and many organizations use npm to manage private development as well.npm是世界上最大的软件注册中心。来自各个大陆的开源开发人员都使用npm来共享和借用包,许多组织也使用npm管理私人开发。
npm consists of three distinct components:npm由三个不同的组成部分组成:
the website网站the Command Line Interface命令行界面 (CLI)the registry注册表
Use the website to discover packages, set up profiles, and manage other aspects of your npm experience. 使用该网站可以发现程序包、设置配置文件,并管理npm体验的其他方面。For example, you can set up organizations to manage access to public or private packages.例如,您可以设置组织来管理对公共或私有包的访问。
The CLI runs from a terminal, and is how most developers interact with npm.CLI从终端运行,是大多数开发人员与npm交互的方式。
The registry is a large public database of JavaScript software and the meta-information surrounding it.注册表是一个大型公共数据库,包含JavaScript软件及其周围的元信息。

Use npm to . . .npm的用途
Adapt packages of code for your apps, or incorporate packages as they are.为您的应用程序调整代码包,或按原样合并代码包。Download standalone tools you can use right away.立即下载您可以使用的独立工具。Run packages without downloading using npx.不使用npx下载即可运行程序包。Share code with any npm user, anywhere.在任何地方与任何npm用户共享代码。Restrict code to specific developers.将代码限制为特定的开发人员。Create organizations to coordinate package maintenance, coding, and developers.创建组织来协调包维护、编码和开发人员。Form virtual teams by using organizations.使用组织组建虚拟团队。Manage multiple versions of code and code dependencies.管理多个版本的代码和代码依赖关系。Update applications easily when underlying code is updated.当底层代码更新时,可以轻松地更新应用程序。Discover multiple ways to solve the same puzzle.探索解决同一难题的多种方法。Find other developers who are working on similar problems and projects.查找正在处理类似问题和项目的其他开发人员。

Getting started起步
To get started with npm, you can create an account, which will be available at http://www.npmjs.com/~*yourusername*.要开始使用npm,您可以创建一个帐户,该帐户将位于http://www.npmjs.com/~*yourusername*。
After you set up an npm account, the next step is to use the command line interface (CLI) to install npm. 设置npm帐户后,下一步是使用命令行界面(CLI)安装npm。We look forward to seeing what you create!我们期待着看到你创造的东西!

Sharing packages and collaborating with others共享软件包并与他人合作
If you choose to share your packages publicly, there is no cost. 如果您选择公开分享您的包裹,则无需支付任何费用。To use and share private packages, you need to upgrade your account. 若要使用和共享私人软件包,您需要升级您的帐户。To share with others, create organizations, called npm organizations, and invite others to work with you, privately (for a fee) or publicly (for free).要与他人分享,请创建称为npm organizations的组织,并邀请他人私下(收费)或公开(免费)与您合作。
You can also use a private npm package registry like GitHub Packages or the open source Verdaccio project. 你也可以使用像GitHub Packages或开源Verdaccio项目这样的私人npm软件包注册表。This lets you develop packages internally that are not shared publicly.这允许您在内部开发不公开共享的包。

Learn more了解更多信息
To learn more about npm as a product, upcoming new features, and interesting uses of npm be sure to follow @npmjs on Twitter.要了解更多关于npm作为一种产品、即将推出的新功能以及npm的有趣用途,请务必在推特上关注@npmjs。
For mentoring, tutorials, and learning, visit node school. Consider attending or hosting a nodeschool event (usually free!) at a site near you, or use the self-help tools you can find on the site.有关指导、辅导和学习,请访问node school。考虑在你附近的网站参加或举办节点学校活动(通常是免费的!),或者使用你可以在网站上找到的自助工具。
CLI reference documentation参考文件
While relevant CLI commands are covered throughout this user documentation, the CLI includes command line help, its own documentation section, and instant help (man pages).虽然本用户文档中涵盖了相关的CLI命令,但CLI包括命令行帮助、自己的文档部分和即时帮助(手册页)。