help icon indicating copy to clipboard operation
help copied to clipboard

Yarn error command failed with exit code 127

Open gianbuschor opened this issue 3 years ago • 1 comments

Details

My yarn wont load for some reason. I always get a error with command failed with exit code 127. I cant seem to find a solution on the yarn helpdesk tho....how can i fix this problem?

gians-macbook-pro:web gianbuschor$ yarn deploy
yarn run v1.22.19
$ cross-env ASSET_PREFIX=/metaplex/ yarn build && yarn deploy:gh
/bin/sh: cross-env: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
gians-macbook-pro:web gianbuschor$ 

Node.js version

v16.15.1

Example code

yarn deploy

Operating system

MacOS

Scope

code

Module and version

Not applicable.

gianbuschor avatar Jun 19 '22 09:06 gianbuschor

i had this problem with yarn and tried reinstalling on the same folder as my project and it worked, just make sure your installing with admin and if you are not sure you can try "sudo apt install yarn".

gabrielefigenio avatar Jun 26 '22 19:06 gabrielefigenio

Hello @gabrielefigenio, I had the same problem, I installed yarn like you said and not fixed, after that I read again my package.json and found my error, I wrote "netx", after chage for "next", I run again "yarn build " and all is ok. Thanks

AlexGeoDev avatar Dec 05 '22 16:12 AlexGeoDev

There has been no activity on this issue for 11 months. The help repository works best when sustained engagement moves conversation forward. The issue will be closed in 1 month. If you are still experiencing this issue on the latest supported versions of Node.js, please leave a comment.

github-actions[bot] avatar Feb 02 '24 01:02 github-actions[bot]

Closing after no activity on this issue for 12 months.

github-actions[bot] avatar Mar 03 '24 01:03 github-actions[bot]