Tencent / tdesign-starter-cli

CLI tool for TDesign Starter kit
MIT License
35 stars 14 forks source link

脚手架初始化项目失败 #25

Closed Zhanghao0150 closed 1 year ago

Zhanghao0150 commented 1 year ago

tdesign-vue-next-starter 版本

v0.2.4

重现链接

No response

重现步骤

1,td-starter init 2, ?请输入项目名称: view ? 请输入项目描述: test ? 选择模板类型: 【Vue3】模板

期望结果

构建成功

实际结果

D:\work\packtool>td-starter init



| | | _ \ (_) / | | | | | _ | | | | | | / _ \ / _| | | / ` | | ' \ \ \ | | / ` | | '| | | / \ | '| | | | || | | / \ \ | | | (| | | | | | ) | | | | (| | | | | | | / | | || |_/ \| |__/ || _, | || || |/ \| _,| || _| _| |_| |___/


√ 构建环境正常!

? 请输入项目名称: view ? 请输入项目描述: Base on tdesign-starter-cli ? 选择模板类型: 【Vue3】模板 ? 选择包含模块: 全部

👉 开始构建,请稍侯...

| 正在构建模板... √ 构建成功! write file error== Error: ENOENT: no such file or directory, open 'view\package.json' at Object.openSync (node:fs:585:3) at Object.readFileSync (node:fs:453:35) at e.executeBuildSuccess (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\bin\index.js:2:29053) at e. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\bin\index.js:2:28474) at step (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:143:27) at Object.next (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:124:57) at fulfilled (C:\Users\Administrator\AppData\Roaming\npm\node_modules\tdesign-starter-cli\node_modules\tslib\tslib.js:114:62) at processTicksAndRejections (node:internal/process/task_queues:96:5) { errno: -4058, syscall: 'open', code: 'ENOENT', path: 'view\package.json' }

👏 初始化项目完成!👏

命令提示:

进入项目

$ cd ./view

安装依赖

$ npm install

运行

$ npm run dev

框架版本

No response

浏览器版本

No response

系统版本

Windows 11 21H2

Node版本

v16.13.1

补充说明

No response

github-actions[bot] commented 1 year ago

👋 @Zhanghao0150,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] commented 1 year ago

♥️ 有劳 @uyarn 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @Zhanghao0150 。

Zhanghao0150 commented 1 year ago

又换了个目录和名字试了初始化,又可以构建了.

github-actions[bot] commented 1 year ago

👋 @Zhanghao0150,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

uyarn commented 1 year ago

@Zhanghao0150 https://github.com/Tencent/tdesign-starter-cli/issues/24 是我们的国内托管平台修改了权限的限制导致下载失败 我们正在处理

uyarn commented 1 year ago

@Zhanghao0150 麻烦升到0.2.5使用一下