You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have set up this project on my Windows machine but for some reason I am not able to run wp-cli commands on it. I can run the site itself with npm start and shell with npm run shell but calling wp does not work in the shell or outside npm shell.
I am new to Docker and npm so it might be an issue with that. I have tried looking for solutions on Google (such as this one: https://bobcares.com/blog/wordpress-cli-docker/) but none of them work with this project (if I get wp-cli to work it is not related to the WordPress site).
I hope you can point me in the right direction.
The text was updated successfully, but these errors were encountered:
I finally figured out the problem. It is EOL characters were incorrect in some files. After going over all files in the project and changing to LR line endings I could finally run WP-CLI commands in the shell (i.e. after running npm run shell.
It is a good idea to add this to settings.json for VS Code if you are using that:
Hello
I have set up this project on my Windows machine but for some reason I am not able to run wp-cli commands on it. I can run the site itself with
npm start
and shell withnpm run shell
but calling wp does not work in the shell or outside npm shell.I am new to Docker and npm so it might be an issue with that. I have tried looking for solutions on Google (such as this one: https://bobcares.com/blog/wordpress-cli-docker/) but none of them work with this project (if I get wp-cli to work it is not related to the WordPress site).
I hope you can point me in the right direction.
The text was updated successfully, but these errors were encountered: