Ameed Faridi
Ameed Faridi

Reputation: 82

Cross-Env not found on production build

bin/sh/:1:cross-env: not found.

error command failed with exit code 127

Using nextJs with the custom express server. If I remove cross-env from the script then it is showing 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.

issue package.json

Upvotes: 1

Views: 601

Answers (0)

Related Questions