我正在尝试将npm安装到我所面临的以下问题的代码中。
命令我尝试:npm install
或
npm -g install npm
npm cache clean -f
npm install -g n以下是错误:
sh: patch-package: command not found
npm ERR! code 127
npm ERR! path XXXX
npm ERR! command failed
npm ERR! command sh -c patch-package发布于 2022-06-08 14:17:17
如果你使用纱线,你可以运行yarn patch-package <args>
否则./node_modules/.bin/patch-package <args>
或者将./node_modules/.bin添加到$PATH环境变量中(我更喜欢这样做)
https://stackoverflow.com/questions/72537670
复制相似问题