I've been using playwright introduction project for about a week and have had no issues. Yesterday while working though the page object model part of the introduction I ran one of my custom scripts from the package.json file and got an error zsh: command not found: test:e2e:example-1. I had used that same command earlier that morning several times and everything worked fine. I looked into it and most of the info I could find said that the path must be wrong in my zshrc file. I didn't understand how that could be possible considering that I had been using those commands for over a week without issue and made no changes to my zshrc file. I found and article that said to add the path to Microsoft.Playwright.CLI into my zshrc file so I tried that and it did not work. I used echo $PATH Microsoft.Playwright.CLI and added the following path to my zshrc file but the commands still do not work. Any help would be appreciated
echo returned /Users/myusername/.dotnet/tools:/Users/myusername/.dotnet/tools:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Users/myusername/.dotnet/tools:/Users/myusername/.dotnet/tools Microsoft.Playwright.CLI
I added this to my zshrc file and tried several other variations.
I've been using playwright introduction project for about a week and have had no issues. Yesterday while working though the page object model part of the introduction I ran one of my custom scripts from the package.json file and got an error zsh: command not found: test:e2e:example-1. I had used that same command earlier that morning several times and everything worked fine. I looked into it and most of the info I could find said that the path must be wrong in my zshrc file. I didn't understand how that could be possible considering that I had been using those commands for over a week without issue and made no changes to my zshrc file. I found and article that said to add the path to Microsoft.Playwright.CLI into my zshrc file so I tried that and it did not work. I used echo $PATH Microsoft.Playwright.CLI and added the following path to my zshrc file but the commands still do not work. Any help would be appreciated
echo returned
/Users/myusername/.dotnet/tools:/Users/myusername/.dotnet/tools:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Users/myusername/.dotnet/tools:/Users/myusername/.dotnet/tools Microsoft.Playwright.CLI
I added this to my zshrc file and tried several other variations.