S
S
sorry_i_noob2018-12-25 11:17:59
Composer
sorry_i_noob, 2018-12-25 11:17:59

Why do I need internet to install Laravel from the installer?

Hello. I'm reading a tutorial on Laravel. It is written that to install Laravel via Composer, you first need to install the Laravel installer:
composer global require "laravel/installer"
And then Laravel itself:
laravel new blog
In my understanding, the installer is what you need to download once. And then with the help of it you can install something on your computer many times. However, I installed the installer, disconnected the Internet, entered the command:
laravel new blog
And I got an error:

Crafting application...

In CurlFactory.php line 185:

  cURL error 6: Could not resolve host: cabinet.laravel.com (see http://curl.
  haxx.se/libcurl/c/libcurl-errors.html)


new [--dev] [--force] [--] [<name>]

Why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2018-12-25
@Arik

the installer probably knows more than anyone how to install, and not that he has everything with himself, for every occasion, it is still clear from the blanks that a person may not have access to the Internet and you need to score dependencies to the fullest, but there is no point with the Internet , so you would only install the installer for several minutes / hours and get not the latest packages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question