我已经通过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.
那么什么会使命令被识别,但不产生输出?