Skip to content

Commit

Permalink
feat: update npm.taobao.org to npmmirror.com (#6824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Certseeds committed Nov 9, 2021
1 parent e40f062 commit aa85cb0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/guide/creating-a-project.md
Expand Up @@ -28,7 +28,7 @@ If you chose to manually select features, at the end of the prompts you also hav
::: tip ~/.vuerc
Saved presets will be stored in a JSON file named `.vuerc` in your user home directory. If you wish to modify saved presets / options, you can do so by editing this file.

During the project creation process, you may also be prompted to select a preferred package manager, or use the [Taobao npm registry mirror](https://npm.taobao.org/) for faster dependency installation. Your choices will also be saved in `~/.vuerc`.
During the project creation process, you may also be prompted to select a preferred package manager, or use the [Taobao npm registry mirror](https://npmmirror.com/) for faster dependency installation. Your choices will also be saved in `~/.vuerc`.
:::

The `vue create` command has a number of options and you can explore them all by running:
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/guide/creating-a-project.md
Expand Up @@ -28,7 +28,7 @@ vue create hello-world
::: tip ~/.vuerc
Создаваемые пресеты сохраняются в JSON-файле `.vuerc` в домашнем каталоге вашего пользователя. Если вы захотите изменить сохранённые пресеты / настройки, можете это сделать отредактировав этот файл.

В процессе создания проекта, также может быть предложено выбрать предпочитаемый менеджер пакетов или использовать [Taobao зеркало для npm регистра](https://npm.taobao.org/), чтобы ускорить установку зависимостей. Этот выбор также будет сохранён в `~/.vuerc`.
В процессе создания проекта, также может быть предложено выбрать предпочитаемый менеджер пакетов или использовать [Taobao зеркало для npm регистра](https://npmmirror.com/), чтобы ускорить установку зависимостей. Этот выбор также будет сохранён в `~/.vuerc`.
:::

Команда `vue create` предоставляет множество опций — вы можете изучить их все выполнив:
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/guide/creating-a-project.md
Expand Up @@ -27,7 +27,7 @@ vue create hello-world
::: tip ~/.vuerc
被保存的 preset 将会存在用户的 home 目录下一个名为 `.vuerc` 的 JSON 文件里。如果你想要修改被保存的 preset / 选项,可以编辑这个文件。

在项目创建的过程中,你也会被提示选择喜欢的包管理器或使用[淘宝 npm 镜像源](https://npm.taobao.org/)以更快地安装依赖。这些选择也将会存入 `~/.vuerc`
在项目创建的过程中,你也会被提示选择喜欢的包管理器或使用[淘宝 npm 镜像源](https://npmmirror.com/)以更快地安装依赖。这些选择也将会存入 `~/.vuerc`
:::

`vue create` 命令有一些可选项,你可以通过运行以下命令进行探索:
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/util/registries.js
@@ -1,7 +1,7 @@
const registries = {
npm: 'https://registry.npmjs.org',
yarn: 'https://registry.yarnpkg.com',
taobao: 'https://registry.npm.taobao.org',
taobao: 'https://registry.npmmirror.com',
pnpm: 'https://registry.npmjs.org'
}

Expand Down

1 comment on commit aa85cb0

@yoyo837
Copy link

@yoyo837 yoyo837 commented on aa85cb0 Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excuse me! What is the difference between them? Just an alias?

Please sign in to comment.