我试图在react应用程序中使用sequelize,并且已经通过yarn add添加了sequelize、sequelize-cli和pg,但是当试图添加pg-hstore时,出现了以下错误:
yarn add v1.22.18
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error /Users/currentuser/Desktop/project/node_modules/underscore: Command failed.
Exit code: 127
Command: patch-package
Arguments:
Directory: /Users/currentuser/Desktop/project/node_modules/underscore
Output:
/bin/sh: patch-package: command not found
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.我不知道如何解决这一问题,任何帮助都将不胜感激。
发布于 2022-09-24 07:05:31
问题在package.json:https://github.com/jashkenas/underscore/blob/68e5eb68635548846b4663479b9d0fc78d090b0a/package.json#L95中的post安装脚本中。
它已经修复了1.13.6版本,几个小时前发布的版本:https://github.com/jashkenas/underscore/releases/tag/1.13.6
只要再运行一次yarn add,就可以了。
希望这能有所帮助!
https://stackoverflow.com/questions/73833214
复制相似问题