当前位置:网站首页>Pit encountered during installation of laravel frame
Pit encountered during installation of laravel frame
2022-07-02 18:14:00 【North Gate Makino】
One 、 install composer, My side is virtual Linux System , So there are two installation methods :
1. yes composer The official method
2. yes curl install .
The place where the pit meets is curl Installed composer, After installation, you need to install laravel frame
composer create-project --prefer-dist laravel/laravel
But there was curl 60 Report errors , Here's the picture 
There are many solutions , Finally found a useful , Download the certificate , Then put the certificate in the specified folder .
----- Download certificate address :https://curl.se/docs/caextract.html After entering the website, click... At the top cacert.pem Download .
----- View the certificate location through the command and execute the following command ,
php -r "print_r(openssl_get_cert_locations());"
----- Where to get the local certificate , Here's the picture 
----- find phpini The contents of the file modification are shown in the following figure , Remember to restart after the modification php

If all goes well , Now you can install normally Laravel 了 , Of course, you may also encounter the following error reports 



The solution to the above error report is to replace composer Mirror source for ..... I hope you can succeed !
**
Two 、 Use composer Install well laravel After the project , Just install laravel-ide-helper Plug in , There are many pits here .
**
composer require barryvdh/laravel-ide-helper 2.6
The version of this plug-in should be the same as laravel The Framework version matches , Otherwise, it will report a mistake , That is to say, the implementation of php artisan ide Prompt when 
At this point, you need to go to the frame vendor Look under the directory to see if there is barryvdh, If not, do it again
composer require barryvdh/laravel-ide-helper 2.6
What I just downloaded here is 2.6 Version of , therefore , It should be consistent , It is suggested that composer.json Add the content in the red box
"barryvdh/laravel-ide-helper": "^2.6"

Execute now
php artisan ide
It's normal 
And then execute
php artisan ide-helper:gen
lavavel The content shown in the following figure will appear in the project , At this time, you can enjoy code completion happily .

If this article is useful to you , That would be great .
边栏推荐
- Unified interface for reading and writing data files in xml/json/ini and ubjson formats
- 567.字符串中的排列
- Design of the multi live architecture in different places of the king glory mall
- MySQL advanced - transaction and index
- Easyai notes - machine learning
- Wasserstein slim gain with clipping penalty (wsgain-cp) introduction and code implementation -- missing data filling based on generating countermeasure network
- Embedded development board ~ description
- RDK simulation experiment
- 能解决 80% 故障的排查思路
- Bluetooth technology | new working mode of wearable devices of the Internet of things, and Bluetooth ble helps the new working mode
猜你喜欢

Viewing technological changes through Huawei Corps (VI): smart highway

Pychar modify pep8 e501 line too long > 0 characters

From a professional background, I can't get into a small company for interview

Outsourcing for five years, abandoned

aloam 代码阅读与总结

Does pytorch support 32 bits?

515. Find the maximum value in each tree row

MySQL安装与配置

能解决80%故障的排查思路

Two pieces of nature a day! Duan Fengfeng, an alumnus of the University of science and technology of China, was the third Chinese winner of the belby medal
随机推荐
Freemaker+poi realizes dynamic generation and parsing of Excel files
Tower safety monitoring system unattended inclination vibration monitoring system
Wechat nucleic acid detection appointment applet system graduation design (2) applet function
Aptos tutorial - participate in the official incentive testing network (ait2 incentive testing network)
Unified interface for reading and writing data files in xml/json/ini and ubjson formats
Ora-19838 -- restore control files to the standby database
win10 kms activator
MySQL installation and configuration
Use Zadig to build a continuous delivery platform from 0 to 1
Customize a loading instruction
2020互联网行业术语
MySQL进阶-事务及索引
Finally detailed explanation
巴比特 | 元宇宙每日必读:一千块就能买一个虚拟主播?这是小企业的直播福音还是在“割韭菜”?...
架构设计——ID生成器「建议收藏」
[golang | grpc] use grpc to realize simple remote call
开发一个禁止删除namespace的控制器
Remember to use ternary expressions when switching transformations
求求你们,别再刷 Star 了!这跟“爱国”没关系!
Troubleshooting ideas that can solve 80% of faults