Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

淘宝镜像修改 #1032

Open
yiyi17 opened this issue Jul 1, 2024 · 0 comments
Open

淘宝镜像修改 #1032

yiyi17 opened this issue Jul 1, 2024 · 0 comments

Comments

@yiyi17
Copy link

yiyi17 commented Jul 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant