npm WARN exec The following package was not found and will be installed: create-remix@2.2.0

发布时间 2023-11-09 09:43:44作者: 夏目贵志ㅤ

报错

执行 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 包未找到。

解决

这可能是因为您在全局安装了较新版本的 create-remix,而使用的模板需要较旧版本的 create-remix

通过指定所需的 create-remix 版本来创建 Remix 项目,并使用提供的模板。

npx create-remix@2.2.0 --template ryanflorence/remix-tutorial-template 指定文件夹