Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support global usage #1378

Closed
ruudboon opened this issue Nov 23, 2019 · 10 comments
Closed

Support global usage #1378

ruudboon opened this issue Nov 23, 2019 · 10 comments
Assignees
Milestone

Comments

@ruudboon
Copy link
Member

When installing devtools (v4.0.0-beta.2) globally you will get the following error:

ERROR: Please run composer install

Please add support for global installation.

@ruudboon ruudboon added this to the 4.0.0 milestone Nov 23, 2019
@sergeyklay
Copy link
Contributor

Do you mean phalcon.phar?

@Jeckerson
Copy link
Member

@sergeyklay No, when you install package globally: composer global install.

@faridanthony
Copy link

Hi, is this solved yet? I'm getting the same:
ERROR: Please run composer install

@Jeckerson Jeckerson reopened this Apr 25, 2020
@Jeckerson Jeckerson modified the milestones: 4.0.0, 4.0.x Apr 25, 2020
Jeckerson added a commit that referenced this issue Apr 25, 2020
@Jeckerson Jeckerson self-assigned this Apr 25, 2020
@Jeckerson Jeckerson mentioned this issue Apr 25, 2020
@foroughfadaei
Copy link

Hi, is this solved yet? I'm getting the same:
ERROR: Please run composer install

me too

@Jeckerson Jeckerson reopened this Jun 24, 2020
@mrdipesh1
Copy link

Samething happened to me for 2 days, but finally it is solved.
I did,

  1. Installed composer, by downloading composer.exe

  2. Open composer.json which is located at C:/user/Your PC USERNAME/appdata/roaming/composer and pasted
    {
    "require-dev": {
    "phalcon/devtools": "~4.0"
    }
    }

  3. run composer global require phalcon/devtool in cmd. It will take time to download, you have to wait.
    Note: I have installed GIT, From here and during the process it will ask for token key and the link for that will be given by cmd itself. If any error occured during download, restart this step. Phalcon/devtool must be @100% or should be installed through cache. I didnt care about other downloads excepts downloads with name phalcon/(migration & devtools).

  4. After complete, you will find the phalcon devtool path inside that composer path

  5. inside devtool path, there is a file in .bat format. Open it and modify the PTOOLPATH to same directory where that .bat file located

  6. register the same path you just used in .bat file in Enviromental Variable PATH

  7. open new CMD and type phalcon. I got the result as it should display.

@fagai
Copy link

fagai commented Jul 12, 2020

Will this support not be merged into 3.x?

# phalcon console

Phalcon DevTools (3.4.11)

PHP Fatal error:  Uncaught Error: Class 'Psy\Configuration' not found in /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Commands/Builtin/Console.php:58
Stack trace:
#0 /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Script.php(117): Phalcon\Commands\Builtin\Console->run(Array)
#1 /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Script.php(151): Phalcon\Script->dispatch(Object(Phalcon\Commands\Builtin\Console))
#2 /root/composer/vendor/phalcon/devtools/phalcon(76): Phalcon\Script->run()
#3 {main}
  thrown in /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Commands/Builtin/Console.php on line 58

Fatal error: Uncaught Error: Class 'Psy\Configuration' not found in /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Commands/Builtin/Console.php on line 58

Error: Class 'Psy\Configuration' not found in /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Commands/Builtin/Console.php on line 58

Call Stack:
    0.0147     402928   1. {main}() /root/composer/vendor/phalcon/devtools/phalcon:0
    0.0231     789544   2. Phalcon\Script->run() /root/composer/vendor/phalcon/devtools/phalcon:76
    0.0235     789544   3. Phalcon\Script->dispatch() /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Script.php:151
    0.0256     790328   4. Phalcon\Commands\Builtin\Console->run() /root/composer/vendor/phalcon/devtools/scripts/Phalcon/Script.php:117

@Jeckerson
Copy link
Member

Related #1431

@DebugTheCode
Copy link

Going into the phalcon-devtools folder (e.g. /Users/[username]/phalcon-devtools and run composer install, fixed it for me.

@doornema
Copy link

run this in terminal
below in [username] insert your own username like "/home/javad/phalcon-devtools"
cd /home/[username]/phalcon-devtools/
composer install
if " phalcon " command not found
alias phalcon=/home/[username]/phalcon-devtools/phalcon

@BeMySlaveDarlin
Copy link
Contributor

BeMySlaveDarlin commented Mar 8, 2021

Debian installation OK
Centos installation OK
Windows (XAMPP)installation OK

@niden niden moved this to Released in Phalcon v5 Aug 25, 2022
@niden niden added this to Phalcon v5 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

10 participants