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

npm run i18n-remove 报错 #11097

Closed
1470397673 opened this issue Dec 19, 2023 · 1 comment
Closed

npm run i18n-remove 报错 #11097

1470397673 opened this issue Dec 19, 2023 · 1 comment

Comments

@1470397673
Copy link

image
网上找了好多版本的情况都没有看到我这种情况,希望求解

@chenshuai2144
Copy link
Collaborator

chenshuai2144 commented Jan 23, 2024

值得注意是的百分之二十的问题都可以用重装依赖来解决,所以你可以尝试一下:
删除 'node_modules' 文件夹 -> 删除 'package-lock.json'或 'pnpm-lock.yaml' 文件 -> 运行 'pnpm install' 或 'npm install' 命令

根据提供的信息,应该是在升级 @ant-design/pro-cli 的过程中导致了报错。可以尝试以下解决方案:

  1. 首先确保 @ant-design/pro-cli 已经安装成功,并且版本号为 3.2.0。

  2. 检查项目根目录下的 package.json 文件,查看是否有 `@ant-design/pro-cli 相关的依赖。

    如果没有,可以尝试手动安装 @ant-design/pro-cli,运行命令 npm install i@ant-design/pro-cli--save

    如果已经安装了 @ant-design/pro-cli,则尝试删除 node_modules 文件夹,并重新执行 npm install 命令。

  3. 如果以上步骤都没有解决问题,可以尝试移除 package-lock.json 文件,并重新执行 npm install 命令。

  4. 如果依然存在问题,可以尝试升级 npmnode 的版本,以确保使用的是最新的稳定版本。

  5. 如果还是无法解决问题,建议在官方的仓库或社区中提问,获取更多帮助。

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

2 participants