Troubleshooting
If you are experiencing problems when running Wordpress or Gatsby, make sure to go through these steps first.
Wordpress
- Pull the latest code:
git pull - Reinstall dependencies:
composer install - Restart Valet:
valet restart - Recreate the Valet link:
valet link --secure cms.example
Gatsby
- Pull the latest code:
git pull - Remove all installed modules:
rm -rf node_modulesif there are no Yarn workspaces.find . -name node_modules -type d -exec rm -rf {} \;in monorepos with Yarn workspaces.
- Run
nvm useto ensure you have the version of Node.js that is specified in the.nvmrcfile and that the project is compatible with that version. - Reinstall all modules:
yarn install - Clear Gatsby’s cache and built files:
yarn clean