Skip to content

淘宝镜像修改 #1032

@yiyi17

Description

@yiyi17

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch rax-cli@3.4.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/rax-cli/bin/rax.js b/node_modules/rax-cli/bin/rax.js
index 83f460e..6627e5e 100755
--- a/node_modules/rax-cli/bin/rax.js
+++ b/node_modules/rax-cli/bin/rax.js
@@ -190,7 +190,7 @@ async function createProject(name, verbose, template, userAnswers) {
   }
 
   const { projectType = 'app', targets, appType, languageType, miniappComponentBuildType = 'compile', miniappPluginBuildType = 'compile' } = userAnswers;
-  const registry = 'https://registry.npm.taobao.org';
+  const registry = 'https://registry.npmmirror.com';
 
   console.log(
     'Creating a new Rax project in',

This issue body was partially generated by patch-package.

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