Running `cpx tinker` throws fatal error in `cpx/cpx/files/psysh-config.php` · Issue #3 · imliam/cpx · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love this tool, it is pretty useful and I can see myself using it in multiple ways.
An issue I am facing when trying to run cpx tinker, it leads to Warning: require_once(~/.composer/vendor/cpx/cpx/files/../vendor/autoload.php): Failed to open stream: No such file or directory
I did some debugging and found to resolve the issue, I had to modify the files/psysh-config.php to the adjust the require_once line to be:
I think its a bug in psysh-config.php. when the composer autoloader is meant to support both, global installation and regular "in-project" installations, it has to be something like
Had the same issue as @N-Molham in OP, but for me the fix to require_once path in psysh-config.php file worked. I have only cpx installed globally on this machine, no other composer packages, so probably that's the difference.
Hello,
I love this tool, it is pretty useful and I can see myself using it in multiple ways.
An issue I am facing when trying to run
cpx tinker
, it leads toWarning: require_once(~/.composer/vendor/cpx/cpx/files/../vendor/autoload.php): Failed to open stream: No such file or directory
I did some debugging and found to resolve the issue, I had to modify the
files/psysh-config.php
to the adjust the require_once line to be:Not sure if it because I already had
psys
installed globally before or not.For context:
Installed global packages
Installed global packages
Update
After trying to fix the require_one path, I am getting different error:
Appreciate your efforts.
Thanks,
Nabeel
The text was updated successfully, but these errors were encountered: