Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

zsh: command not found: create-treats-app #8

Closed
miqdadfwz opened this issue Jan 9, 2019 · 3 comments
Closed

zsh: command not found: create-treats-app #8

miqdadfwz opened this issue Jan 9, 2019 · 3 comments

Comments

@miqdadfwz
Copy link
Contributor

miqdadfwz commented Jan 9, 2019

Describe the bug
I have installed create-treats-app as described on documentation, when I typed create-treats-app it gave the result that the command was not found.

To Reproduce
Steps to reproduce the behavior:

  1. Type yarn global add create-treats-app on terminal
  2. After the installation is finished, then type create-treats-app.
  3. Receive error that the command is not found.

Expected behavior
The boilerplate is successfully created.

Screenshots
screen shot 2019-01-09 at 08 38 30

Desktop (please complete the following information):

  • OS: macos
  • yarn version: 1.10.1
  • node version: 8.12.0

Additional context
I'm using zsh instead of bash for cli shell.

@miqdadfwz
Copy link
Contributor Author

Update: I was able to create app using npx, but it seems still an issue that need to be resolved.

@martinock
Copy link
Contributor

martinock commented Jan 11, 2019

Are you sure there's nothing wrong with create-treats-app installation? I try to reproduce this error and nothing comes out in my terminal.

I am using:

  • OS: macOS
  • yarn: 1.12.3
  • node: 10.14.1

I suggest you to reproduce the error again and check whether the installation is okay or not. A screenshot of the error (if any) would be great.

@regalius
Copy link
Contributor

regalius commented Jan 11, 2019

Hello @miqdadfwz,

Looks like this one is related to yarn and zsh issues you can find about it more on yarn's issue tracker. To solve this you just have to add

export PATH="$(yarn global bin):$PATH"

on your .zshrc file

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants