Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile

Steps taken

  1. Navigated to https://deploy.workers.cloudflare.com/
  2. Generated new project using https://github.com/lappalj4/cloudflare-worker-cra/generate
  3. Updated name field in the wrangler.toml file to be the “app name”
  4. Updated GitHub repository > Settings > Secrets for the API Token and Account ID

The build fails due to the following error

=> Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
=> Create one of them and run this script again
OR
=> Append the following lines to the correct file yourself:

export NVM_DIR="$HOME/nvm"
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm

Any ideas on why this occurs? Thanks

That’s not an error, just what happens when nvm installs. Also, if it’s failing I would recommend trying to deploy Kristian’s version instead, it’s more up to date.

Repo here: GitHub - bytesizedxyz/cloudflare-worker-cra: A fresh CRA project which automatically deploys to Cloudflare Workers with Github Actions.
Deploy here: Deploy to Cloudflare Workers

If it still doesn’t work, send the GitHub repo so we can take a look at the log

I created a .bashrc file in my Github repo and added

export NVM_DIR="$HOME/nvm"
22
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh” # This loads nvm

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.