admin管理员组文章数量:1130349
So i installed the wp admin package, but i can't seem to get her working, an error pops up telling me xdg-open doenst exist.. For install i used:
wp package install [email protected]:wp-cli/admin-command.git
Installing package wp-cli/admin-command (dev-master)
Updating ~.wp-cli\packages\composer.json to require the package...
Registering [email protected]:wp-cli/admin-command.git as a VCS repository...
Using Composer to install the package...
---
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT
Looking at all rules.
Dependency resolution completed in 0.385 seconds
Analyzed 6619 packages to resolve dependencies
Analyzed 474197 rules to resolve dependencies
Package operations: 1 install, 0 updates, 0 removals
Installs: wp-cli/admin-command:dev-master 384f6d3
- Installing wp-cli/admin-command (dev-master 384f6d3)
Writing lock file
Generating autoload files
---
Success: Package installed.
Now checking if she's there
wp admin --info
'xdg-open' is not recognized as an internal or external command,
operable program or batch file.
So what's going wrong, how can i get the wp admin command to run? btw, im running WP-CLI 2.0.1 on win10 from powershell. Any help would be greatly appreciated.
So i installed the wp admin package, but i can't seem to get her working, an error pops up telling me xdg-open doenst exist.. For install i used:
wp package install [email protected]:wp-cli/admin-command.git
Installing package wp-cli/admin-command (dev-master)
Updating ~.wp-cli\packages\composer.json to require the package...
Registering [email protected]:wp-cli/admin-command.git as a VCS repository...
Using Composer to install the package...
---
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT
Looking at all rules.
Dependency resolution completed in 0.385 seconds
Analyzed 6619 packages to resolve dependencies
Analyzed 474197 rules to resolve dependencies
Package operations: 1 install, 0 updates, 0 removals
Installs: wp-cli/admin-command:dev-master 384f6d3
- Installing wp-cli/admin-command (dev-master 384f6d3)
Writing lock file
Generating autoload files
---
Success: Package installed.
Now checking if she's there
wp admin --info
'xdg-open' is not recognized as an internal or external command,
operable program or batch file.
So what's going wrong, how can i get the wp admin command to run? btw, im running WP-CLI 2.0.1 on win10 from powershell. Any help would be greatly appreciated.
Share Improve this question asked Nov 1, 2018 at 9:48 DGRFDSGNDGRFDSGN 16711 bronze badges 14 | Show 9 more comments2 Answers
Reset to default 2This happened due to Windows not yet being supported.
With PR#18 this was resolved, update the package to the latest version and it will work on Windows machines.
So xdg-open is not supported on Windows, therefor the code has been updated to check for a Windows OS and use start
Check out this repo if you cant wait for the merge with master.
Will leave this Question here untill everything is merged, so people experiencing a similar problem have some reference. Thanks @king-kero @schlessera for the quick support@github!
So i installed the wp admin package, but i can't seem to get her working, an error pops up telling me xdg-open doenst exist.. For install i used:
wp package install [email protected]:wp-cli/admin-command.git
Installing package wp-cli/admin-command (dev-master)
Updating ~.wp-cli\packages\composer.json to require the package...
Registering [email protected]:wp-cli/admin-command.git as a VCS repository...
Using Composer to install the package...
---
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT
Looking at all rules.
Dependency resolution completed in 0.385 seconds
Analyzed 6619 packages to resolve dependencies
Analyzed 474197 rules to resolve dependencies
Package operations: 1 install, 0 updates, 0 removals
Installs: wp-cli/admin-command:dev-master 384f6d3
- Installing wp-cli/admin-command (dev-master 384f6d3)
Writing lock file
Generating autoload files
---
Success: Package installed.
Now checking if she's there
wp admin --info
'xdg-open' is not recognized as an internal or external command,
operable program or batch file.
So what's going wrong, how can i get the wp admin command to run? btw, im running WP-CLI 2.0.1 on win10 from powershell. Any help would be greatly appreciated.
So i installed the wp admin package, but i can't seem to get her working, an error pops up telling me xdg-open doenst exist.. For install i used:
wp package install [email protected]:wp-cli/admin-command.git
Installing package wp-cli/admin-command (dev-master)
Updating ~.wp-cli\packages\composer.json to require the package...
Registering [email protected]:wp-cli/admin-command.git as a VCS repository...
Using Composer to install the package...
---
Loading composer repositories with package information
Updating dependencies
Resolving dependencies through SAT
Looking at all rules.
Dependency resolution completed in 0.385 seconds
Analyzed 6619 packages to resolve dependencies
Analyzed 474197 rules to resolve dependencies
Package operations: 1 install, 0 updates, 0 removals
Installs: wp-cli/admin-command:dev-master 384f6d3
- Installing wp-cli/admin-command (dev-master 384f6d3)
Writing lock file
Generating autoload files
---
Success: Package installed.
Now checking if she's there
wp admin --info
'xdg-open' is not recognized as an internal or external command,
operable program or batch file.
So what's going wrong, how can i get the wp admin command to run? btw, im running WP-CLI 2.0.1 on win10 from powershell. Any help would be greatly appreciated.
Share Improve this question asked Nov 1, 2018 at 9:48 DGRFDSGNDGRFDSGN 16711 bronze badges 14-
1
I'm not sure windows is supported. Checking this ticket, it seems to yet focus on Linux (
xdg-open) and Mac (open). You could create an issue on their GitHub – kero Commented Nov 1, 2018 at 9:51 - So no wp admin support for win ? @kero :'( – DGRFDSGN Commented Nov 1, 2018 at 9:53
- Ticket filed @ github/wp-cli/admin-command/issues/15 – DGRFDSGN Commented Nov 1, 2018 at 10:00
- Waiting for pull request to test usage of 'start' on win platform – DGRFDSGN Commented Nov 6, 2018 at 11:33
-
Can you run
php -r 'var_dump(PHP_OS);'from your powershell and if so, what does it return? – kero Commented Nov 6, 2018 at 12:00
2 Answers
Reset to default 2This happened due to Windows not yet being supported.
With PR#18 this was resolved, update the package to the latest version and it will work on Windows machines.
So xdg-open is not supported on Windows, therefor the code has been updated to check for a Windows OS and use start
Check out this repo if you cant wait for the merge with master.
Will leave this Question here untill everything is merged, so people experiencing a similar problem have some reference. Thanks @king-kero @schlessera for the quick support@github!
本文标签: wp cliXDGOPEN is not recognized by WP CLI admin command
版权声明:本文标题:wp cli - XDG-OPEN is not recognized by WP CLI admin command 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749178485a2328202.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


xdg-open) and Mac (open). You could create an issue on their GitHub – kero Commented Nov 1, 2018 at 9:51php -r 'var_dump(PHP_OS);'from your powershell and if so, what does it return? – kero Commented Nov 6, 2018 at 12:00