craftcms / nitro

Speedy local dev environment for @craftcms.
https://getnitro.sh
MIT License
178 stars 24 forks source link

`nitro: command not found` on install using curl command #272

Closed kblizeck closed 3 years ago

kblizeck commented 3 years ago

Description

Steps to reproduce

  1. Installed Docker Desktop 3.1.0 (made sure it was running)
  2. Opened an iTerm window and ran bash <(curl -sLS http://installer.getnitro.sh)
  3. Receive below message
~/Local Sites  > bash <(curl -sLS http://installer.getnitro.sh)
/dev/fd/11: line 119: [: /Users/kblizeck/Local: binary operator expected
Downloading package https://github.com/craftcms/nitro/releases/download/2.0.3/nitro_darwin_x86_64.tar.gz to /Users/kblizeck/Local Sites/temp_nitro_extract/nitro_darwin_x86_64.tar.gz

curl: (23) Failed writing body (0 != 927)
/dev/fd/11: line 197: nitro: command not found

Additional info

jasonmccallister commented 3 years ago

@kblizeck it might be the space in your path that is causing the error, can you try running the install command from your home directory and not Local Sites?

angrybrad commented 3 years ago

Fixed in https://github.com/craftcms/nitro/commit/e1da66122b225744a09e0ce9fe775f6415847165

The installer will now work if it is run from a working directory that has spaces in the path.

kblizeck commented 3 years ago

Thank you @angrybrad!