yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

All commands are not found #9007

Open budarin opened 7 months ago

budarin commented 7 months ago

Windows 10 Pro Release Version 22H2 OS Assembly 19045.3636 Interaction Windows Feature Experience Pack 1000.19053.1000.0

NVM for Windows: 1.1.11 Node: 21.1.0 Yarn: 1.22.19

Have installed yarn globally npm i -g yarn

Have installed all dependencies for the project in node_modules

image

image

I'm trying to call yarn zx in Git Bash terminal, but I get an error:

$ yarn zx
yarn run v1.22.19
$ D:\Projects\MyTasks\node_modules\.bin\zx
/usr/bin/bash: line 1: D:ProjectsMyTasksnode_modules.binzx: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

but zx and zx.cmd are present in ../node_modules/.bin/

This problem applies to all other teams as well