The problem I had gatsbyjs, node and npm installed on a Debian system. Now I’m getting this error: -bash: gatsby: command not found -bash: node: command not found -bash: npm: command not found Troubleshooting Check npm installation using the package manager: apt-cache policy npm npm: Installed: (none) Check nvm installation: nvm –version 0.39.3 This means… Continue reading nvm, npm, node: Command not found
Tag: gatsbyjs
Environment variable undefined in GatsbyJS?
If you’re trying to use an environment variable in your GatsbyJS HTML code and it keeps being undefined once you build, this could be because most environment variables are prevented from being rendered e.g. so that your private API key is not revealed by accident. If your variable does have to end up in the… Continue reading Environment variable undefined in GatsbyJS?
Debug environment variables when setting up GatsbyJS with headless WordPress
GatsbyJS talks to headless Wordpress via a GraphQL endpoint which you can specify using an environment variable. Here’s how you can debug it when setting up the connection.