win11环境下执行到 curl -s "https://laravel.build/example-app" | bash 这一步时提示docker is not running,google了一下,人家给的解决办法是在docker的settings -> WSL Integration ->把ubuntu点亮,我碰到的这个问题算解决了[doge],另外wsl2环境的网络联通问题,我换成了小猫咪 + TUN模式,wsl2里面完全不需要配置代理了,真香[doge]
dreamcc2022.02.26 00:30
Warning: TTY mode requires /dev/tty to be read/writable.
Creating a "laravel/laravel" project at "./example-app"
Installing laravel/laravel (v9.1.0)
- Downloading laravel/laravel (v9.1.0)
- Downloading laravel/laravel (v9.1.0)
- Downloading laravel/laravel (v9.1.0)
- Downloading laravel/laravel (v9.1.0)
Failed to download laravel/laravel from dist: curl error 28 while downloading https://api.github.com/repos/laravel/laravel/zipball/ecf7b06c4b2286eab6f4fc946588300c95e2cabb: Connection timed out after 10004 milliseconds
Now trying to download from source
- Syncing laravel/laravel (v9.1.0) into cache
[RuntimeException]
Failed to clone https://github.com/laravel/laravel.git via https, ssh protocols, aborting.
- https://github.com/laravel/laravel.git
Cloning into bare repository '/root/.composer/cache/vcs/https---github.com-laravel-laravel.git'...
fatal: unable to access 'https://github.com/laravel/laravel.git/': Failed to connect to github.com port 443: Connection refused
- git@github.com:laravel/laravel.git
Cloning into bare repository '/root/.composer/cache/vcs/https---github.com-laravel-laravel.git'...
ssh: connect to host github.com port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
8分16秒,听见老师的孩子喊“爸爸”了😂 😂 😂
我录视频她就在边上陪着,有时候就会捣捣乱
没事,挺好的😂
环境:win11 在sail up 后 RUN apt-get update 等好久就崩掉了
恭喜你体会到我的痛苦了,录视频的时候我也崩塌过,这套视频我录了三天
哈哈 只能边喝茶边一遍遍试了
最好把科学上网打开,或者用联通的网络。
嗯 参考了 https://learnku.com/docs/laravel-development-environment/8.x/setting-up-the-sail-environment-under-windows-10/10352#74faff 然后打开科学上网 一次就成功了
为了避免不必要的麻烦,科学上网还是最简单的方式
win11环境下执行到 curl -s "https://laravel.build/example-app" | bash 这一步时提示docker is not running,google了一下,人家给的解决办法是在docker的settings -> WSL Integration ->把ubuntu点亮,我碰到的这个问题算解决了[doge],另外wsl2环境的网络联通问题,我换成了小猫咪 + TUN模式,wsl2里面完全不需要配置代理了,真香[doge]
Warning: TTY mode requires /dev/tty to be read/writable. Creating a "laravel/laravel" project at "./example-app" Installing laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) Failed to download laravel/laravel from dist: curl error 28 while downloading https://api.github.com/repos/laravel/laravel/zipball/ecf7b06c4b2286eab6f4fc946588300c95e2cabb: Connection timed out after 10004 milliseconds Now trying to download from source - Syncing laravel/laravel (v9.1.0) into cache
[RuntimeException]
Failed to clone https://github.com/laravel/laravel.git via https, ssh protocols, aborting.
- https://github.com/laravel/laravel.git
Cloning into bare repository '/root/.composer/cache/vcs/https---github.com-laravel-laravel.git'...
fatal: unable to access 'https://github.com/laravel/laravel.git/': Failed to connect to github.com port 443: Connection refused
- git@github.com:laravel/laravel.git
Cloning into bare repository '/root/.composer/cache/vcs/https---github.com-laravel-laravel.git'...
ssh: connect to host github.com port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]
这个错误咋弄的呢 咋搞 搞不过去 大半夜想着这事 半夜爬起来 搞了好几个小时 就是搞不过去
composer 你用的哪里的镜像,默认的,还是国内的?
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
你可以运行上面指令,切换到国内的阿里云的镜像,重启再试试
意思是直接在linux下 直接安装 composer ??? 然后设置阿里镜像么??
你就先直接运行这条指令就好,你机器composer应该是安装了,但是镜像肯定没改过
Laravel Sail如何实现多站点呀,
这个得自己做一下映射,可以搜一搜,过去刚出来的时候我体验过它,现在的新版本一直也没有用过,我更多还是喜欢自己搭环境玩。