1

我已经通过 pear 安装了 PHPCS,所有说明都说如果一切正常运行 PHPCS -i 应该返回一些东西。但他们从不说当它不起作用时该怎么做。几个月前这是可行的,现在不行了。

jlesc@CATODCSWKSTN1 C:\MAMP\bin\php\php7.0.0
$ pear install PHP_CodeSniffer
downloading PHP_CodeSniffer-2.9.1.tgz ...
Starting to download PHP_CodeSniffer-2.9.1.tgz (526,111 bytes)
.........................................................................................................done: 526,111 bytes
install ok: channel://pear.php.net/PHP_CodeSniffer-2.9.1

jlesc@CATODCSWKSTN1 C:\MAMP\bin\php\php7.0.0
$ phpcs -i

jlesc@CATODCSWKSTN1 C:\MAMP\bin\php\php7.0.0
$

被什么问题难住了?

当我卸载它时,它会按预期删除命令。

jlesc@CATODCSWKSTN1 C:\MAMP\htdocs
$ pear uninstall php_codesniffer
uninstall ok: channel://pear.php.net/PHP_CodeSniffer-2.9.1

jlesc@CATODCSWKSTN1 C:\MAMP\htdocs
$ phpcs
'phpcs' is not recognized as an internal or external command,
operable program or batch file.

那么什么会使命令被识别,但不产生输出呢?

4

0 回答 0