Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我本地实际用的包管理器是pnpm,但是自动检测认为是yarn,提示是npm #9

Open
rainmanhhh opened this issue Oct 22, 2021 · 1 comment

Comments

@rainmanhhh
Copy link

我本地实际用的包管理器是pnpm,但是自动检测认为是yarn,提示是npm

=== 欢迎使用 create-tsrpc-app 版本 1.1.8 ===

创建 TSRPC 应用: trpc
? 请选择要创建的项目类型: Vue 3 + 后端
? 请选择传输协议: HTTP 短连接
 √ 1/9 检测 NPM 环境: Command: yarn, Registry: https://registry.npm.taobao.org
 √ 2/9 复制文件到 "backend"
 √ 3/9 生成 "backend/package.json"
 √ 4/9 npm-check-update
 √ 5/9 复制文件到 "frontend"
 √ 6/9 生成 "frontend/package.json"
 √ 7/9 npm-check-update
 √ 8/9 Initialize symlink
 √ 9/9 安装 NPM 依赖

========================================

✅ TSRPC APP 创建成功。

运行本地开发服务器:

= 后端 =

    cd backend
    npm run dev

= 前端 =

    cd frontend
    npm run dev

@k8w
Copy link
Owner

k8w commented Oct 22, 2021

您是 yarn pnpm npm 都有安装,但实际希望使用 pnpm 对吗?
因为目前的实现是只检测 yarnnpm,检测到安装了 yarn 会优先使用 yarn

如果有需要的话,后续考虑加一个选项手动指定包管理器。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants