robsontenorio / mary

Laravel Blade UI Components for Livewire 3
https://mary-ui.com
Other
955 stars 115 forks source link

/usr/bin/env: ‘bash\r’: No such file or directory error on fresh install #458

Closed afdhal395 closed 3 months ago

afdhal395 commented 3 months ago

maryUI version

1.31

daisyUI version

no entry there

Livewire version

3.5

What browsers are affected?

Chrome

What happened?

I am to try the demo of maryUI as seen on the https://mary-ui.com/bootcamp/02. After running php artisan mary:install, the error /usr/bin/env: ‘bash\r’: No such file or directory error on fresh install appeared. Here is the log of command output.

❤️  maryUI installer

 ┌ Also install `livewire/volt` ? ──────────────────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

 ┌ Install with ... ────────────────────────────────────────────┐
 │ npm                                                          │
 └──────────────────────────────────────────────────────────────┘

Installing Livewire...

./composer.json has been updated
Running composer update livewire/livewire livewire/volt
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.  

  blade-ui-kit/blade-heroicons .......................................... DONE
  blade-ui-kit/blade-icons .............................................. DONE
  laravel/sail .......................................................... DONE
  laravel/tinker ........................................................ DONE
  livewire/livewire ..................................................... DONE
  livewire/volt ......................................................... DONE
  nesbot/carbon ......................................................... DONE
  nunomaduro/collision .................................................. DONE
  nunomaduro/termwind ................................................... DONE
  robsontenorio/mary .................................................... DONE

87 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force

   INFO  No publishable resources for tag [laravel-assets].  

No security vulnerability advisories found.
Using version ^3.5 for livewire/livewire
Using version ^1.6 for livewire/volt

   INFO  Publishing Volt Service Provider.  

   INFO  Volt scaffolding installed successfully.  

Installing daisyUI + Tailwind...

/usr/bin/env: ‘bash\r’: No such file or directory

   Illuminate\Process\Exceptions\ProcessFailedException 

  The command "npm install --save-dev tailwindcss daisyui@latest postcss autoprefixer" failed.

Exit Code: 127

Error Output:
================
/usr/bin/env: ‘bash\r’: No such file or directory

  at vendor/laravel/framework/src/Illuminate/Process/ProcessResult.php:125
    121▕         if ($this->successful()) {
    122▕             return $this;
    123▕         }
    124▕ 
  ➜ 125▕         $exception = new ProcessFailedException($this);
    126▕ 
    127▕         if ($callback) {
    128▕             $callback($this, $exception);
    129▕         }

      +15 vendor frames 

  16  artisan:13
      Illuminate\Foundation\Application::handleCommand()
afdhal395 commented 3 months ago

Solved using sudo apt install nodejs npm in Ubuntu WSL.