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

Upd: change resolves to available mirror #4238

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Daydreamer114
Copy link
Contributor

我这里其他两个都用不了,
设置 yarn config set registry https://registry.npmmirror.com 并不会对 yarn.lock 中指定过镜像的生效
这个论坛里看到了这个解决方案
image

@Daydreamer114
Copy link
Contributor Author

另外请问,我在 webapp 中运行 yarn run compile 后报错:

yarn run v1.22.22
$ cross-env MODE=production npm run build

> build
> node scripts/build.js

packages/main/
  failed to load config from C:\Users\10206\Documents\GitHub\Daydreamer114\AzurLaneAutoScript\webapp\packages\main\vite.config.js
  Error [ERR_REQUIRE_ESM]: require() of ES Module file:///C:/Users/10206/Documents/GitHub/Daydreamer114/AzurLaneAutoScript/webapp/electron-vendors.config.json not supported.
      at TracingChannel.traceSync (node:diagnostics_channel:315:14) {
    code: 'ERR_REQUIRE_ESM'
  }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

应该如何解决?

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

Successfully merging this pull request may close these issues.

1 participant