关于 npm
See Details
目录
npm 是世界上最大的软件注册表。来自各大洲的开源开发者使用 npm 来共享和借用包,许多组织也使用 npm 来管理私有开发。
¥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 consists of three distinct components:
-
网站
¥the website
-
命令行接口 (CLI)
¥the Command Line Interface (CLI)
-
注册表
¥the registry
使用 网站 发现包、设置配置、以及管理 npm 体验的其他方面。例如,你可以设置 组织 来管理对公共或私有包的访问。
¥Use the website to discover packages, set up profiles, and manage other aspects of your npm experience. For example, you can set up organizations to manage access to public or private packages.
CLI 从终端运行,是大多数开发者与 npm 交互的方式。
¥The CLI runs from a terminal, and is how most developers interact with npm.
注册表 是 JavaScript 软件及其周围元信息的大型公共数据库。
¥The registry is a large public database of JavaScript software and the meta-information surrounding it.
使用 npm 去 . . .
¥Use npm to . . .
-
为你的应用调整代码包,或按原样合并包。
¥Adapt packages of code for your apps, or incorporate packages as they are.
-
下载你可以立即使用的独立工具。
¥Download standalone tools you can use right away.
-
使用 npx 运行包而不下载。
¥Run packages without downloading using npx.
-
随时随地与任何 npm 用户共享代码。
¥Share code with any npm user, anywhere.
-
将代码限制为特定的开发者。
¥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
要开始使用 npm,你可以 创建账号