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

new version available: 2.3.1 → 3.0.0, not compatible, you must update to use this. #5275

Closed
dingshaohua-com opened this issue Nov 26, 2023 · 4 comments

Comments

@dingshaohua-com
Copy link

dingshaohua-com commented Nov 26, 2023

在此输入你需要反馈的 Bug 具体信息(Bug in Detail):

PS D:\code> npm init egg
npm WARN cli npm v10.2.4 does not support Node.js v18.16.0. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
[egg-init] use registry: https://registry.npmjs.org
[egg-init] new version available: 2.3.1 → 3.0.0, not compatible, you must update to use this.
npm ERR! code 1
npm ERR! path D:\code
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-egg

npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-11-26T11_18_07_833Z-debug-0.log

可复现问题的仓库地址(Reproduction Repo)

https://github.com/eggjs

Node 版本号:

v20.10.0

Eggjs 版本号:

创建项目失败

相关插件名称与版本号(PlugIn and Name):

操作平台与版本号(Platform and Version):

Windows 11 企业版(23H2)

@fengmk2
Copy link
Member

fengmk2 commented Nov 26, 2023

egg-init 重新安装一下,之前有一个自动升级的机制。

@dingshaohua-com
Copy link
Author

dingshaohua-com commented Nov 26, 2023

egg-init 重新安装一下,之前有一个自动升级的机制。

其实我没有手动安装过egg-init的包
但是你给我了我思路。
我手动安装了下npm install -g egg-init

之后 直接使用egg-init命令初始化项目就可以了

@loseleo
Copy link

loseleo commented Nov 27, 2023

建议修复一下,现在都在报错
接上门同学,egg-init 命令直接创建,不要用npm init egg 命令。如下
egg-init --type=ts

@fengmk2
Copy link
Member

fengmk2 commented Nov 27, 2023

egg-init 重新安装一下

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

3 participants