Skip to main content

常见问题

如何运行 sv CLI?(How do I run the sv CLI?)

¥How do I run the sv CLI?

对于每个包管理器,运行 sv 看起来略有不同。以下是最常见的命令的列表:

¥Running sv looks slightly different for each package manager. Here is a list of the most common commands:

  • npm : npx sv create

  • pnpm:pnpx sv createpnpm dlx sv create

    ¥pnpm : pnpx sv create or pnpm dlx sv create

  • Bun : bunx sv create

  • Deno : deno run npm:sv create

  • Yarn : yarn dlx sv create

npx sv 不起作用(npx sv is not working)

¥npx sv is not working

一些包管理器更喜欢运行本地安装的工具,而不是从注册表下载和执行包。此问题主要发生在 npmyarn 上。这通常会导致错误消息,或者看起来你尝试执行的命令没有执行任何操作。

¥Some package managers prefer to run locally installed tools instead of downloading and executing packages from the registry. This issue mostly occurs with npm and yarn. This usually results in an error message or looks like the command you were trying to execute did not do anything.

以下是用户过去遇到的问题及其可能的解决方案的列表:

¥Here is a list of issues with possible solutions that users have encountered in the past:

上一页 下一页