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. #5278

Closed
JUNHAN12138 opened this issue Dec 14, 2023 · 7 comments

Comments

@JUNHAN12138
Copy link

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

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

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

https://github.com/eggjs

Node 版本号:

v20.10.0

Eggjs 版本号:

项目初始化

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

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

macbook pro

@JUNHAN12138
Copy link
Author

tnpm装不了3.0.1

@fengmk2
Copy link
Member

fengmk2 commented Dec 14, 2023

怎样复现的?执行了什么命令?

@zhoushan1
Copy link

同样出现这个报错,在初始化项目执行npm init egg --type=simple
node版本: v16.20.0

@yinhaixiang
Copy link

同样出现这个报错,在初始化项目执行npm init egg --type=simple
node版本: v18.17.1

@fengmk2
Copy link
Member

fengmk2 commented Jan 5, 2024

估计是安装了 egg-init,可以看看版本 egg-init --version

如果是老版本,请先重新安装它,执行 npm i -g egg-init

@Chef5
Copy link

Chef5 commented Mar 24, 2024

node v16.20.0
npm初始化,同样报这个错:

jj@MBP egg-example % npm init egg --type=simple
[egg-init] use registry: https://registry.npmmirror.com
[egg-init] new version available: 2.3.1 → 3.1.0, not compatible, you must update to use this.
npm ERR! code 1
npm ERR! path /Users/jj/Examples/egg-example
npm ERR! command failed
npm ERR! command sh -c -- create-egg

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jj/.npm/_logs/2024-03-24T11_13_24_507Z-debug-0.log
jj@MBP egg-example % egg-init --version
zsh: command not found: egg-init
jj@MBP egg-example % npm i -g egg-init

@a-painting
Copy link

估计是安装了 egg-init,可以看看版本 egg-init --version

如果是老版本,请先重新安装它,执行 npm i -g 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

6 participants