blitz-js / legacy-framework

MIT License
2 stars 2 forks source link

Recipe installation error. Could not found recipe by name. #994

Closed alexgoto closed 2 years ago

alexgoto commented 2 years ago

What is the problem?

Could not found receipt by name on 'blitz install'.

I tried: blitz install tailwind blitz install material-ui

and have same results ERROR Could not find recipe *name*

Also try blitz install, then select 'tailwind'. Result - ERROR Could not find recipe "undefined".

Also try blitz install https://github.com/blitz-js/blitz/tree/canary/recipes/tailwind. Result - SyntaxError: Unexpected token u in JSON at position 0.

Paste all your error logs here:

Default

user@user ~/s/j/g/a/blitz-try (master) > blitz install tailwind
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env.local
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env
ERROR Could not find recipe "tailwind"

Please provide one of the following:

1. The name of a recipe to install (e.g. "tailwind")
   - Available recipes listed at https://github.com/blitz-js/blitz/tree/canary/recipes
2. The full name of a GitHub repository (e.g. "blitz-js/example-recipe"),
3. A full URL to a Github repository (e.g. "https://github.com/blitz-js/example-recipe"), or
4. A file path to a locally-written recipe.

Without providing a name of a recipe

user@user ~/s/j/g/a/blitz-try (master) > blitz install
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env.local
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env
✔ Select a recipe to install · tailwind
ERROR Could not find recipe "undefined"

Please provide one of the following:

1. The name of a recipe to install (e.g. "tailwind")
   - Available recipes listed at https://github.com/blitz-js/blitz/tree/canary/recipes
2. The full name of a GitHub repository (e.g. "blitz-js/example-recipe"),
3. A full URL to a Github repository (e.g. "https://github.com/blitz-js/example-recipe"), or
4. A file path to a locally-written recipe.

Paste all relevant code snippets here:

blitz install

What are detailed steps to reproduce this?

  1. blitz new blitz-try
  2. cd blitz-try
  3. blitz install tailwind or
  4. blitz install

Run blitz -v and paste the output here:

Linux 5.17 | linux-x64 | Node: v16.16.0

blitz: 0.45.4 (global)
blitz: 0.45.4 (local)

  Package manager: yarn 
  System:
    OS: Linux 5.17 Kali GNU/Linux Rolling 2022.2
    CPU: (24) x64 Intel(R) Xeon(R) CPU           X5675  @ 3.07GHz
    Memory: 38.11 GB / 47.14 GB
    Shell: 3.4.1 - /usr/bin/fish
  Binaries:
    Node: 16.16.0 - ~/.local/share/nvm/v16.16.0/bin/node
    Yarn: 1.22.19 - ~/.local/share/nvm/v16.16.0/bin/yarn
    npm: 8.11.0 - ~/.local/share/nvm/v16.16.0/bin/npm
    Watchman: Not Found
  npmPackages:
    @prisma/client: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1 
    blitz: 0.45.4 => 0.45.4 
    prisma: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1 
    react: 18.0.0 => 18.0.0 
    react-dom: 18.0.0 => 18.0.0 
    typescript: ~4.5 => 4.5.5 

Please include below any other applicable logs and screenshots that show your problem:

No response

aslauris commented 2 years ago

Same here with the following setup:

Run blitz -v and paste the output here:

macOS Monterey | darwin-arm64 | Node: v17.8.0

blitz: 0.45.4 (global)
blitz: 0.45.4 (local)

  Package manager: yarn
  System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1 Pro
    Memory: 292.14 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 17.8.0 - ~/.nvm/versions/node/v17.8.0/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v17.8.0/bin/yarn
    npm: 8.5.5 - ~/.nvm/versions/node/v17.8.0/bin/npm
    Watchman: Not Found
  npmPackages:
    @prisma/client: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
    blitz: 0.45.4 => 0.45.4
    prisma: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
    react: 18.0.0 => 18.0.0
    react-dom: 18.0.0 => 18.0.0
    typescript: ~4.5 => 4.5.5
aslauris commented 2 years ago

@alexgoto as a work around I've installed it from the file system by doing the following steps:

  1. Download chakra-ui recipe from https://github.com/blitz-js/blitz/tree/canary/recipes/ (saved it to project root)
  2. Open terminal app and cd to project root
  3. Install the recipe by running the following command blitz install ./chakra-ui
alexgoto commented 2 years ago

@alexgoto as a work around I've installed it from the file system by doing the following steps:

  1. Download chakra-ui recipe from https://github.com/blitz-js/blitz/tree/canary/recipes/ (saved it to project root)
  2. Open terminal app and cd to project root
  3. Install the recipe by running the following command blitz install ./chakra-ui

Yes, thank you. It is actual solution. But unfortunately documented functions of "blitz install" doesn't work all the same.

jagoncalves14 commented 2 years ago

I'm currently facing the exact same issue.

blitz -v

macOS Monterey | darwin-x64 | Node: v14.20.0

blitz: 0.45.4 (global)
blitz: 0.45.4 (local)

  Package manager: npm
  System:
    OS: macOS 12.4
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 590.03 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.20.0 - ~/.nvm/versions/node/v14.20.0/bin/node
    Yarn: Not Found
    npm: 8.13.2 - ~/.nvm/versions/node/v14.20.0/bin/npm
    Watchman: Not Found
  npmPackages:
    @prisma/client: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
    blitz: 0.45.4 => 0.45.4
    prisma: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
    react: 18.0.0 => 18.0.0
    react-dom: 18.0.0 => 18.0.0
    typescript: ~4.5 => 4.5.5