Category: Vagrant
-
Post Views: 15 1. After formatting the homestead.yaml file in phpstorm, the indentation of the format is incorrect, the format is as follows. as shown in Figure 1 2. Check the format of homestead.yaml.example, – there is only one space with map. as shown in Figure 2 3. Reference:https://www.jetbrains.com.cn/help/phpstorm/2021.3/yaml.html. Settings – Editor – Code Style – YAML . Settings may…
-
Post Views: 58 1. When starting vagrant, an error is reported: stderr: vboxmanage.exe: error: whvCapabilityCodeHypervisorPresent is false! make sure you have enabled theWindows Hypervisor Platformfeature. (verr_nem_not_available).. as shown in Figure 1 2. Standard error: vboxmanage.exe: error: whvCapabilityCodeHypervisorPresent is false! Make sure you have the “Windows Hypervisor Platform” feature enabled. (verr_nem_not_available). Right-click the Windows button and select “Apps and Features”. Select…
-
Post Views: 16 1. When starting Vagrant, an error is reported: D:/Program files/hashicorp/vagrant/embedded/mingw64/lib/ruby/2.7.0/psych.rb:456:in `parse: (): found a tab character that violates indentation while scanning a plain scalar at line 10 Column 7 (psych::SyntaxError). as shown in Figure 1 2. View the file ~/homestead/homestead.yaml in phpstorm, and find a red wavy line prompt. The reason may be that it has been…
-
Post Views: 21 1. Timed out while waiting for the machine to boot. The configured (“config.vm.boot_timeout” value) time period. as shown in Figure 1 2. Although the map has been modified to e:/wwwroot/vagrant, it was: ~/code before. Still decide to create a new directory: ~/code 3. Run again: vagrant reload –provision, no more errors.
-
Post Views: 16 1. Execute: Vagrant up error: The name of your virtual machine could beT Be Set Because VirtualBox is reporting another VM with that name already exists. as shown in Figure 1 2. After deleting Vagrant, open the VirtualBox GUI to confirm whether it exists, and then manually delete the virtual machine. as shown in Figure 2 3.…
-
Post Views: 20 1. Execute the Composer Update in Homestead and report an error: Your requirements could not be resolved to an installable set of packages. The reason is that the PHP version is 8.0 , and the version of the package depends on 7. as shown in Figure 1 2. Reference:https://learnku.com/docs/laravel/5.8/homestead/3882#multiple-php-versions. Homestead 6 introduced support for multiple PHP versions…
-
Post Views: 15 1. Log in to the Homestead virtual machine with the command vagrant ssh to ssh, and the login fails and does not respond. as shown in Figure 1 2. Use folders to indicate the folder that the machine is mapped to on the Homestead virtual machine. The reason is that the native folder e:/wwwroot specified by map…
-
Post Views: 18 1. When starting Vagrant, an error is reported: D:/Program files/hashicorp/vagrant/embedded/mingw64/lib/ruby/2.7.0/psych.rb:456:in `parse: (): found a tab character that violates indentation while scanning a plain scalar at line 10 Column 7 (psych::SyntaxError). as shown in Figure 1 2. View the file ~/homestead/homestead.yaml in phpstorm, and find a red wavy line prompt. The reason may be that it has been…
-
Post Views: 57 1. Execute Vagrant on Windows 10 and report an error: Vagrant failed to initialize at a very early stage, as shown in Figure 1 2. The reason should be that Vagrant has been updated recently, and Vagrant can be automatically tried by running the following command (remove and reinstall All plugins), follow the prompts to execute the…
-
Post Views: 29 1. Implement the corresponding RESTful-style web service API of the page in the API directory, and then adjust it to the RPC client 2. After all the corresponding APIs of the page are implemented, the POST request is executed in Postman, and the response is normal, as shown in Figure 1 3. Execute the PUT /pages/1 request…