php think run 报错——‘D:\Program‘ is not recognized as an internal or external command...

报错截图:

意思就是不能读取空格,需要把路径用双引号括起来。

# /vendor/topthink/framework/src/think/console/command/RunServer.php:59
   '%s -S %s:%d -t %s %s'  ->  '"%s" -S %s:%d -t %s %s'  # 加上引号解决

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
"vim" is not recognized as an internal or external command, operable program or batch file. This error typically occurs when the "vim" command-line text editor is not installed or not properly configured on your system. Here are a few steps you can take to resolve this issue: 1. Install Vim: If you haven't installed Vim yet, you can download it from the official Vim website (https://www.vim.org/download.php) and follow the installation instructions for your operating system. Make sure to add Vim to your system's PATH environment variable during the installation process. 2. Check PATH variable: If you have already installed Vim, it's possible that its installation directory is not included in your system's PATH environment variable. To check this, open a command prompt and run the following command: ``` echo %PATH% ``` Look for the directory where Vim is installed (e.g., "C:\Program Files\Vim") in the output. If it's missing, you need to add it manually: - Open the System Properties dialog by right-clicking on My Computer/This PC and selecting "Properties". - Click on "Advanced system settings" or "Advanced" tab. - Click on the "Environment Variables" button. - In the "System variables" section, select the "Path" variable and click on "Edit". - Add the directory path of your Vim installation (e.g., "C:\Program Files\Vim") at the end of the variable value, separating it from the previous entry with a semicolon (;). - Click "OK" to save the changes. 3. Restart your command prompt: After making any changes to the PATH variable, you need to close and reopen your command prompt for the changes to take effect. Once you've done that, try running the "vim" command again to see if it works. If the issue persists, please ensure that you have installed Vim correctly and that it is accessible from the command prompt.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DytLisa

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值