提交 50de3baa authored 作者: Will Chen's avatar Will Chen

Make pnpm optional for setup flow

上级 187aab76
......@@ -83,9 +83,8 @@ export function SetupBanner() {
await checkNode();
}, [checkNode, setNodeInstallStep]);
const isNodeSetupComplete = Boolean(
nodeSystemInfo?.nodeVersion && nodeSystemInfo?.pnpmVersion
);
// We only check for node version because pnpm is not required for the app to run.
const isNodeSetupComplete = Boolean(nodeSystemInfo?.nodeVersion);
const itemsNeedAction: string[] = [];
if (!isNodeSetupComplete && nodeSystemInfo) {
......@@ -161,7 +160,8 @@ export function SetupBanner() {
Node.js ({nodeSystemInfo!.nodeVersion}) installed.{" "}
{nodeSystemInfo!.pnpmVersion && (
<span className="text-xs text-gray-500">
pnpm ({nodeSystemInfo!.pnpmVersion}) installed.
{" "}
(optional) pnpm ({nodeSystemInfo!.pnpmVersion}) installed.
</span>
)}
</p>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论