Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用此命令 npm i @cloudflare/wrangler@1.10.3 安装牧马人,当我使用此命令时,我收到此响应
当我去 /home/amarjeet/node_modules/@cloudflare/wrangler 这个路径我看到这些文件
但是当我在第一个图像文件夹中使用 wrangler generate --site static 时,它会给出这个错误
zsh: command not found: wrangler
我不知道如何解决这个错误我无法安装牧马人。
由于您npm i没有使用-g,因此 wrangler 安装在项目本地,而不是全局安装在您的系统上。在这种情况下,您可以使用npx wrangler. npx是一个工具,npm用于运行在项目中本地安装的程序。
npm i
-g
npx wrangler
npx
npm