快捷菜单
常用功能一站直达
更多功能请点顶栏「快捷菜单」
node: '>=22.12.0'
1
2D:\>npm create astro@latest -- --template starlight
3Need to install the following packages:
4create-astro@5.0.5
5Ok to proceed? (y) y
6npm WARN EBADENGINE Unsupported engine {
7npm WARN EBADENGINE package: 'create-astro@5.0.5',
8npm WARN EBADENGINE required: { node: '>=22.12.0' },
9npm WARN EBADENGINE current: { node: 'v20.12.1', npm: '10.5.0' }
10npm WARN EBADENGINE }
11Node.js v20.12.1 is out-of-date and unsupported!
12Please use Node.js v22 or higher.
13npm notice
14npm notice New major version of npm available! 10.5.0 -> 11.12.1
15npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.12.1
16npm notice Run npm install -g npm@11.12.1 to update!
17npm notice
18npm ERR! code 1
19npm ERR! path D:\
20npm ERR! command failed
21npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-astro --template starlight
22
23npm ERR! A complete log of this run can be found in: C:\Users\26752\AppData\Local\npm-cache\_logs\2026-04-11T02_41_05_429Z-debug-0.log
24
25D:\>1#安装
2npm create astro@latest -- --template starlight
3
4#运行
5npm run dev日历 · 精选 · 友链 · 更多
如果内容对你有帮助,欢迎请我喝杯咖啡 ☕



One的公众号
爱折腾博客的小白