Skip to content

Should update boilerplate docs for newer node.js / yarn #183

@MaikoTan

Description

@MaikoTan
  • Now there are no "two giant buttons" in Node.js official site, should change the phrase.

    現在 Node.js 官方網站已無「兩個巨大的按鈕」,應該修正表述

首先我们前往 [Node.js](https://nodejs.org/) 的官方网站:
![home](/manual/nodejs/home-dark.webp) {.dark-only}
![home](/manual/nodejs/home-light.webp) {.light-only}
在这里可以看到两个巨大的按钮,分别对应着 **LTS (长期维护版)****Current (最新版本)**。我们建议你选择更加稳定的 LTS 版本,点击按钮即可下载安装包。

  • Node.js now seems to be shipped with yarn (should confirm!) and corepack, also generally we recommend using Yarn Berry

    Node.js 目前似乎會連同 yarn (需確認) 和 corepack,并且我們現在推薦使用 Yarn Berry

Node.js 自带名为 [npm](https://www.npmjs.com/) 的包管理器,你可以直接使用它。我们同时也推荐功能更强大的 [yarn](https://classic.yarnpkg.com/) 作为包管理器。它的安装非常简单,只需打开命令行输入下面的命令:
```sh
# 安装 yarn
npm i -g yarn
# 查看版本
yarn -v
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions