Question: How to solve laravel valet No such file or directory?

when I was installing laravel valet I got an error saying:

/bin/bash: C:UsersuserAppDataRoamingComposervendorbin/../laravel/valet/valet: No such file or directory

I already required it with composer by this command:

composer global require cretueusebiu/valet-windows

and then using this command to install it:

valet install

and I get the error as shown at the beginning,

and last but not least thanks for trying to help me.


Install it using composer as below: composer global require laravel/valet

Reference here

To uninstall the previous version please use below commands: $ composer global remove laravel/valet

If there is any dependencies or any .valet hidden files, you can remove those as well.