我正在尝试为
然而,当我尝试通过
PowerBI
构建PHP
封装器。我在本地安装了PowerBI Cli
(https://github.com/Microsoft/PowerBI-Cli),当我在终端上运行任何PowerBI Cli
命令时,它都能正常工作。甚至在使用_www
用户(sudo -u _www powerbi config
)运行命令时也能正常工作。然而,当我尝试通过
PHP
使用shell_exec
或Symfony的Process Component
(https://symfony.com/doc/current/components/process.html)来运行这些命令时,会出现以下异常:env: node: No such file or directory.
我在Mac Sierra上遇到了这个问题。使用PHP的exec()
命令在Linux上运行良好。