zsh: command not found: blitz

767 Views Asked by At

I installed blitz like this yarn global add blitz but then when I try to create a new project blitz new myApp I get this error zsh: command not found: blitz.

I guess I have to add something to my $HOME/.zshrc file but I don't know what.

How can I fix this?

This is my $HOME/.zshrc:


export ZSH="/Users/user/.oh-my-zsh"


ZSH_THEME="robbyrussell"


plugins=(git)

source $ZSH/oh-my-zsh.sh

1

There are 1 best solutions below

0
sara lance On

I end up using npm install -g blitz --legacy-peer-deps to install it.