Error when creating a php App with shopify-CLI on macOS

Jschoormans
New Member
1 0 0

Hi everyone, 

This is the first time I am trying to create an app with the Shopify-CLI. However, I get a strange error. 

I am on macOS and ruby version: ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]

Does anyone have an idea on this??

Thanks a lot! 

--Jasper 

(base) js@Jaspers-MacBook-Pro ~ % shopify php create             

? App name

> phpApp

? What type of app are you building? (You chose: Public: An app built for a wide merchant audience.)

                                                                                                                                                                                                                                                                                                                           

Partner organization Vintage Stadskaart (1777403)                                                                                                                                                                                                                                                                          

Using development store jasper-testwinkel.myshopify.com

An unexpected error occured.

To submit an issue include the stack trace.

 

/usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/lib/semantic/version.rb:15:in `initialize': 7.3.24-(to be removed in future macOS) is not a valid SemVer Version (http://semver.org) (ArgumentError)

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/project_types/php/commands/create.rb:52:in `new'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/project_types/php/commands/create.rb:52:in `check_php'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/project_types/php/commands/create.rb:19:in `call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/sub_command.rb:13:in `call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/command.rb:19:in `call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/core/executor.rb:17:in `block (2 levels) in call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `block (2 levels) in with_logging'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in `with_id'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in `block in with_logging'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-ui/lib/cli/ui.rb:176:in `log_output_to'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in `with_logging'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/core/executor.rb:16:in `block in call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `block (2 levels) in with_traps'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in `block in with_traps'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in `with_traps'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/core/executor.rb:15:in `call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/core/entry_point.rb:24:in `block in call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/core/monorail.rb:30:in `log'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/lib/shopify_cli/core/entry_point.rb:23:in `call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/bin/shopify:37:in `block (2 levels) in <top (required)>'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/bin/shopify:36:in `block in <top (required)>'

from /usr/local/Cellar/shopify-cli/2.6.5/gems/shopify-cli-2.6.5/bin/shopify:47:in `<top (required)>'

from /usr/local/bin/shopify:6:in `load'

from /usr/local/bin/shopify:6:in `<main>'

Reply 1 (1)
Tristan3dt
Excursionist
14 0 5

Perhaps not the same cause, but this thread is pretty much the only similar error report on google -- on Ubuntu 18 running via WSL, I'm getting:

 

/home/tristan/gems/gems/shopify-cli-2.6.3/vendor/lib/semantic/version.rb:15:in `initialize': 7.2.24-0ubuntu0.18.04.10 is not a valid SemVer Version (http://semver.org) (ArgumentError)
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/project_types/php/commands/create.rb:52:in `new'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/project_types/php/commands/create.rb:52:in `check_php'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/project_types/php/commands/create.rb:19:in `call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/sub_command.rb:13:in `call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/command.rb:19:in `call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/core/executor.rb:17:in `block (2 levels) in call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:37:in `block (2 levels) in with_logging'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-ui/lib/cli/ui/stdout_router.rb:169:in `with_id'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:36:in `block in with_logging'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-ui/lib/cli/ui.rb:176:in `log_output_to'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:35:in `with_logging'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/core/executor.rb:16:in `block in call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:45:in `block (2 levels) in with_traps'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:51:in `twrap'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:44:in `block in with_traps'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:55:in `twrap'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/executor.rb:43:in `with_traps'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/core/executor.rb:15:in `call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/core/entry_point.rb:24:in `block in call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/core/monorail.rb:32:in `log'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/lib/shopify_cli/core/entry_point.rb:23:in `call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/bin/shopify:37:in `block (2 levels) in <main>'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:75:in `handle_abort'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/vendor/deps/cli-kit/lib/cli/kit/error_handler.rb:21:in `call'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/bin/shopify:36:in `block in <main>'
        from /home/tristan/gems/gems/shopify-cli-2.6.3/bin/shopify:47:in `<main>'

 

 I'm almost totally Ruby-naive, and already had to jump through hoops and upgrade Ubuntu to get shopify-cli to install, so any tips much appreciated!

Creating a Node app instead (shopify node create) seems to work as expected.  The shopify-cli documentation at https://shopify.dev/apps/tools/cli/getting-started actually says "There are two types of app projects that can be created and managed with the CLI:" but then goes on to list three types of app, including PHP apps -- I'm wondering if the PHP support is deprecated but hasn't been removed?