Skip to searchSkip to content
NPM中文文档
翻译建议NPM官网

Site navigation

    • 关于NPM
        • 在公共注册中心上创建新用户帐户
        • 创建强密码
        • 通过邮件接收一次性密码
        • 关于双重验证
        • 配置双重验证
        • 使用双重验证访问npm
        • 恢复启用了双重验证的账户
        • 个人资料设置
        • 修改用户名
        • 删除账号
        • 导出个人资料
        • 升级为付费帐户
        • 查看、下载、发送帐户收据
        • 修改账户支付设置
        • 降级为免费账户
        • npm cli 版本
        • Node.js 和 npm 的下载安装
        • npm-debug.log文件
        • 常见错误
        • 尝试最新稳定版Node
        • 尝试最新稳定版NPM
        • 关于公共源
        • 关于包和模块
        • About scopes
        • 关于公共包
        • 关于私有包
        • 包的适用范围、访问级别以及可见性
        • Creating a package.json file
        • Creating Node.js modules
        • About package README files
        • Creating and publishing unscoped public packages
        • Creating and publishing scoped public packages
        • Creating and publishing private packages
        • Package name guidelines
        • Specifying dependencies and devDependencies in a package.json file
        • About semantic versioning
        • Adding dist-tags to packages
        • Changing package visibility
        • Adding collaborators to private packages owned by a user account
        • Updating your published package version number
        • Deprecating and undeprecating packages or package versions
        • Transferring a package from a user account to another user account
        • Unpublishing packages from the registry
        • Searching for and choosing packages to download
        • Downloading and installing packages locally
        • Downloading and installing packages globally
        • Resolving EACCES permissions errors when installing packages globally
        • Updating packages downloaded from the registry
        • Using npm packages in your projects
        • Using deprecated packages
        • Uninstalling packages and dependencies
        • About audit reports
        • Auditing package dependencies for security vulnerabilities
        • Generating provenance statements
        • About ECDSA registry signatures
        • Verifying ECDSA registry signatures
        • Requiring 2FA for package publishing and settings modification
        • Reporting malware in an npm package
        • npm
        • npm access
        • npm adduser
        • npm audit
        • npm bugs
        • npm cache
        • npm ci
        • npm completion
        • npm config
        • npm dedupe
        • npm deprecate
        • npm diff
        • npm dist-tag
        • NPM中文文档
        • npm doctor
        • npm edit
        • npm exec
        • npm explain
        • npm explore
        • npm find-dupes
        • npm fund
        • npm help
        • npm help-search
        • npm hook
        • npm init
        • npm install
        • npm install-ci-test
        • npm install-test
        • npm link
        • npm login
        • npm logout
        • npm ls
        • npm org
        • npm outdated
        • npm owner
        • npm pack
        • npm ping
        • npm pkg
        • npm prefix
        • npm profile
        • npm prune
        • npm publish
        • npm query
        • npm rebuild
        • npm repo
        • npm restart
        • npm root
        • npm run-script
        • npm sbom
        • npm search
        • npm shrinkwrap
        • npm star
        • npm stars
        • npm start
        • npm stop
        • npm team
        • npm test
        • npm token
        • npm uninstall
        • npm unpublish
        • npm unstar
        • npm update
        • npm version
        • npm view
        • npm whoami
        • npx
        • Install
        • Folders
        • .npmrc
        • npm-shrinkwrap.json
        • package.json
        • package-lock.json
        • Registry
        • Package spec
        • Config
        • Logging
        • Scope
        • Scripts
        • Workspaces
        • 组织
        • Dependency Selectors
        • Developers
        • Removal
        • Changelog
        • About access tokens
        • Creating and viewing access tokens
        • Revoking access tokens
        • Using private packages in a CI/CD workflow
        • Docker and private modules
        • Creating an organization
        • Converting your user account to an organization
        • Requiring two-factor authentication in your organization
        • Renaming an organization
        • Deleting an organization
        • Upgrading to a paid organization plan
        • Viewing, downloading, and emailing receipts for your organization
        • Updating organization billing settings
        • Downgrading to a free organization plan
        • Adding members to your organization
        • Accepting or rejecting an organization invitation
        • Organization roles and permissions
        • Managing organization permissions
        • Removing members from your organization
        • About the developers team
        • Creating teams
        • Adding organization members to teams
        • Removing organization members from teams
        • Managing team access to organization packages
        • Removing teams
        • About organization scopes and packages
        • Configuring your npm client with your organization settings
        • Creating and publishing an organization scoped package
      • 使用条款
      • 开源条款
      • 付费条款
      • 行为准则
      • 包名争议
      • 开源许可
      • 隐私政策
      • 撤销已发布包的政策
      • 版权和DMCA政策
      • 标志和用途
      • 安全协议
      • 复制和网络爬虫政策
    • 潜在威胁与改善措施
  • 翻译建议
  • NPM官网
  • GitHub
  1. 包和模块
  2. Getting packages

获取和使用公共包

  • Searching for and choosing packages to download
  • Downloading and installing packages locally
  • Downloading and installing packages globally
  • Resolving EACCES permissions errors when installing packages globally
  • Updating packages downloaded from the registry
  • Using npm packages in your projects
  • Using deprecated packages
  • Uninstalling packages and dependencies