我想创建一个新的 TSDX 项目。根据 TSDX快速入门文档,我输入
npx tsdx create g2
我选择basic
,我得到以下输出:
~/devlocal npx tsdx create g2
::::::::::: :::::::: ::::::::: ::: :::
:+: :+: :+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+ +:+ +:+
+#+ +#++:++#++ +#+ +:+ +#++:+
+#+ +#+ +#+ +#+ +#+ +#+
#+# #+# #+# #+# #+# #+# #+#
### ######## ######### ### ###
✔ Choose a template · basic
✔ Created g2
✖ Failed to install dependencies
Error: Command failed with exit code 1: yarn add husky tsdx tslib typescript --dev
at makeError (~/.npm/_npx/86071/lib/node_modules/tsdx/node_modules/execa/lib/error.js:56:11)
at handlePromise (~/.npm/_npx/86071/lib/node_modules/tsdx/node_modules/execa/index.js:114:26)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async ~/.npm/_npx/86071/lib/node_modules/tsdx/dist/index.js:173:9
任何想法?
提前致谢!
- 节点版本:v14.9.0
- 纱线版本:1.22.5
- npx 版本:6.13.0
- zsh 5.7.1 (x86_64-apple-darwin19.0)
- macOS 10.15.6 (19G73)