npm WARN exec The following package was not found and will be installed: create-remix@2.2.0
报错
执行 npx create-remix@latest --template ryanflorence/remix-tutorial-template
提示报错如下:
npm WARN exec The following package was not found and will be installed: create-remix@2.2.
使用 npx create-remix@latest 命令创建一个基于 ryanflorence/remix-tutorial-template 模板的 Remix 项目。然而,根据警告信息显示,create-remix@2.2.0 包未找到。
解决
执行如下命令:
npx create-remix@2.2.0 --template ryanflorence/remix-tutorial-template <指定目录> 或者用 . 表示当前目录
原因
这可能是因为您在全局安装了较新版本的 create-remix,而使用的模板需要较旧版本的 create-remix。
通过指定所需的 create-remix 版本 来创建 Remix 项目,并使用提供的模板。

浙公网安备 33010602011771号