alibaba / dawn

:sunrise: Dawn is a lightweight task management and build tool for front-end and nodejs.
https://alibaba.github.io/dawn/
MIT License
1.14k stars 130 forks source link

dn init 失败 #241

Open huaibaomengxiang opened 3 years ago

huaibaomengxiang commented 3 years ago

1. Information

OS & version Node version Dawn version
10.14.6 (18G6020) v12.14.0 1.9.2

2. Problem

image dn init 失败 不能正常初始化项目

3. Recurrence

npm install -g dawn dn init

WechatIMG8
soulwu commented 3 years ago

看错误提示是你边的的网络访问 https://alibaba.github.io/dawn/template.yml 不通,所以没能拉到默认的模板列表。可以通过执行

dn init -t front

指定模板进行初始化

目前可使用的官方模板如下:

name description
front Blank front end project template
react React project template
vue Vue project template
node Blank node project template
browser Blank lib project for browser
middleware Dawn middleware project template
middleware-ts Dawn middleware project template with typescript
doc Blank doc project template