微信扫码登录

微信扫码登录

邮箱恶意注册过多,目前只支持微信模式
当前视频免费,登录后即可观看
正在播放:在 Windows 系统下如何完成 Laravel Sail 的环境构建
发布于: 2022.01.07
MArtian 2022.01.10 08:51

8分16秒,听见老师的孩子喊“爸爸”了😂 😂 😂

Codinget 2022.01.10 08:58

我录视频她就在边上陪着,有时候就会捣捣乱

MArtian 2022.01.10 08:59

没事,挺好的😂

haohexin 2022.01.13 15:41

环境:win11 在sail up 后 RUN apt-get update 等好久就崩掉了

Codinget 2022.01.13 15:56

恭喜你体会到我的痛苦了,录视频的时候我也崩塌过,这套视频我录了三天

haohexin 2022.01.13 15:59

哈哈 只能边喝茶边一遍遍试了

Codinget 2022.01.13 16:00

最好把科学上网打开,或者用联通的网络。

haohexin 2022.01.14 10:40

嗯 参考了 https://learnku.com/docs/laravel-development-environment/8.x/setting-up-the-sail-environment-under-windows-10/10352#74faff 然后打开科学上网 一次就成功了

Codinget 2022.01.14 10:52

为了避免不必要的麻烦,科学上网还是最简单的方式

kk 2022.01.18 14:20

win11环境下执行到 curl -s "https://laravel.build/example-app" | bash 这一步时提示docker is not running,google了一下,人家给的解决办法是在docker的settings -> WSL Integration ->把ubuntu点亮,我碰到的这个问题算解决了[doge],另外wsl2环境的网络联通问题,我换成了小猫咪 + TUN模式,wsl2里面完全不需要配置代理了,真香[doge]

dreamcc 2022.02.26 08: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

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>]

这个错误咋弄的呢 咋搞 搞不过去 大半夜想着这事 半夜爬起来 搞了好几个小时 就是搞不过去

Codinget 2022.02.26 10:06

composer 你用的哪里的镜像,默认的,还是国内的?

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

你可以运行上面指令,切换到国内的阿里云的镜像,重启再试试

dreamcc 2022.02.26 10:10

意思是直接在linux下 直接安装 composer ??? 然后设置阿里镜像么??

Codinget 2022.02.26 10:17

你就先直接运行这条指令就好,你机器composer应该是安装了,但是镜像肯定没改过

标 题