中文文档中文文档优站精选优站精选关于关于
GitHubGitHub (opens in a new tab)
  • 简介
  • 使用指南
    • 组织文件
    • Markdown
    • 语法高亮
    • Next.js 的 Link 组件
    • Next.js 的 Image 组件
    • Next.js SSG
    • Next.js I18n
    • 支持自定义 CSS
    • 进阶
      • Npm2Yarn
      • Mermaid
      • Tailwind CSS
      • LaTeX
      • Rendering Tables
      • TypeScript
      • Remote Content
    • 内置组件
      • Callout
      • Tabs
      • Cards
      • Steps
      • FileTree
  • 主题
  • 文档主题
    • 入门
    • 页面配置
    • 主题配置
    • 内置组件
      • Bleed
      • useConfig
  • 博客主题
    • Get Started
  • 自定义主题
  • 更多
  • 关于 Nextra
  • Next.js 中文文档 ↗ (opens in a new tab)

On This Page

  • Example
  • Usage
Question? Give us feedback → (opens in a new tab)Edit this page on GitHub →
中文文档
使用指南
进阶
Npm2Yarn

Npm2Yarn

Nextra uses @theguild/remark-npm2yarn (opens in a new tab) package that replaces the code block that has npm2yarn metadata with <Tabs /> and <Tabs.Tab /> components from nextra/components.

The chosen tab is saved in the local storage, which will be chosen in future page renders.

Example

npm i -D @graphql-eslint/eslint-plugin

Usage

Markdown
```sh npm2yarn
npm i -D @graphql-eslint/eslint-plugin
```
进阶Mermaid

© 2025 The Nextra Project.

京ICP备11008151号-36

友链

BootstrapTailwindCSSReactStyleXNext.jsMDXDocusaurusnpmYarnpnpmWebpackParcelRollupesbuildBiomeBabelSvelteCheerioEleventy(11ty)ExpressFastifyKoaStrapiJSDocDenoBunAstro