eggjs / egg

🥚 Born to build better enterprise frameworks and apps with Node.js & Koa

Home Page:https://eggjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dingshaohua-com opened this issue · comments

在此输入你需要反馈的 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)

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

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

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

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

commented

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

egg-init 重新安装一下