Skip to content

Can't Install Starter Kit locally #77

Open

Description

@lokmanm

This used to work but now when I'm trying to run:

statamic new --with-config --local landtamic lucky-media/landtamic 

And yes I do have the global config updated to:

{
	"repositories": [
		{
			"type": "path",
			"url": "/Users/Sites/landtamic"
		}
	]
}

When I run the command it still prompts me for a license.

Activity

  1. robdekort commented on Jul 10, 2024

    @robdekort
    Contributor

    It should be statamic new lucky-media/landtamic --local --with-config. Without the double landtamic :-).

  2. lokmanm commented on Jul 10, 2024

    @lokmanm
    Author

    Hey Rob!

    Now I get:

    Starter kit is required when using `--local` option!
    
  3. robdekort commented on Jul 10, 2024

    @robdekort
    Contributor

    That's so weird, look at this:
    Screenshot 2024-07-10 at 15 33 39

    Are you sure your /Users/Sites/landtamic contains a composer.json:

    {
        "name": "lucky-media/landtamic",
        "extra": {
            "statamic": {
                "name": "Title",
                "description": "Description"
            }
        }
    }
  4. lokmanm commented on Jul 10, 2024

    @lokmanm
    Author

    @robdekort yep I have all that. I think its failing because of the license check. It works for me for our free starter kit, but fails for the paid ones.

  5. robdekort commented on Jul 10, 2024

    @robdekort
    Contributor

    Ehmmm, ok, no experience there I'm afraid.

  6. JonKaric commented on Aug 1, 2025

    @JonKaric

    This used to work

    Did you publish the package? It used to work for me before I published. Internally statamic checks if they can find the package on the marketplace.

    I've just come across this. Went down the rabbit hole and it looks like just doing a simple check to see if the --local flag is input isn't really secure. In the end, it still uses composer require and there isn't a composer command to only install from a local package.

    I'm having to flip my package name just to test which isn't ideal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions