Skip to main content

Troubleshooting

If you are experiencing problems when running Wordpress or Gatsby, make sure to go through these steps first.

Wordpress

  1. Pull the latest code: git pull
  2. Reinstall dependencies: composer install
  3. Restart Valet: valet restart
  4. Recreate the Valet link: valet link --secure cms.example

Gatsby

  1. Pull the latest code: git pull
  2. Remove all installed modules:
    • rm -rf node_modules if there are no Yarn workspaces.
    • find . -name node_modules -type d -exec rm -rf {} \; in monorepos with Yarn workspaces.
  3. Run nvm use to ensure you have the version of Node.js that is specified in the .nvmrc file and that the project is compatible with that version.
  4. Reinstall all modules: yarn install
  5. Clear Gatsby’s cache and built files: yarn clean