bin/sh/:1:cross-env: 未找到。
错误命令失败,退出代码 127
将 nextJs 与自定义快递服务器一起使用。如果我从脚本中删除 cross-env 那么它显示 Express is not found
[2021-07-20 12:08:54] yarn run v1.22.10
[2021-07-20 12:08:54] $ cross-env NODE_ENV=production node server/index.js
[2021-07-20 12:08:55] /bin/sh: 1: cross-env: not found
[2021-07-20 12:08:55] error Command failed with exit code 127.
[2021-07-20 12:08:55] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.