3
我试图让PhpStorm命令行工具控制台工作,作曲和Laravel运行Windows我的电脑上。WAMP +作曲家+ Laravel + PhpStorm
因此,这里是我做过什么:
- 安装WAMP
- 配置的PHPStorm PHP解释器路径 使用
- 安装作曲(所以我的PATH瓦尔设置)。
- 在CLI启用
php_openssl
国防部。
Composer-Setup.exe
Eveything在命令行中工作正常,本地和cygwin的。
但是,当我尝试从PhpStorm命令行工具控制台使composer update
我得到以下RuntimeException
(法语):
[RuntimeException]
Error Output: 'php' n'est pas reconnu en tant que commande interne
ou externe, un programme ex�cutable ou un fichier de commandes.
至极翻译成英文给我们:
[RuntimeException]
Error Output: 'php' not recognized as an internal or external command,
operable program or batch file.
但PHP在命令行中完美工作:
C:\Users\Me>php -v
PHP 5.4.12 (cli) (built: Feb 25 2013 00:29:22)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
任何人都有关于如何使这项工作的线索?
这可能是一个PhpStorm问题,而不是laravel的也不作曲家。我搜索:无法识别为命令 –
重新启动电脑,以便PATH环境变量将被适当地更新的所有进程(同时具有PhpStorm运行,特别是如果你已经安装WAMP)PhpStorm PHP。这实际上不是PhpStorm问题,而是Windows操作系统的工作原理。在Mac或Linux上可能遇到的类似问题,当在bash控制台中配置并运行的某些内容在PhpStorm中不起作用时 - IDE不会读取/使用bash配置文件... – LazyOne