Coder Social home page Coder Social logo

Comments (15)

jasonvarga avatar jasonvarga commented on June 1, 2024

Your version of cli is super old.

Try running composer global require statamic/cli to update.

from cli.

mware avatar mware commented on June 1, 2024

Thank you @jasonvarga. Ran it, still stuck on 1.0.3.
Nothing to install, update or remove
I think the issue is more on my end. We can close this.

from cli.

jasonvarga avatar jasonvarga commented on June 1, 2024

Ok how about composer global require statamic/cli:^3

from cli.

mware avatar mware commented on June 1, 2024

no matches found: statamic/cli:^3

from cli.

jasonvarga avatar jasonvarga commented on June 1, 2024

composer -V ?

from cli.

mware avatar mware commented on June 1, 2024

Composer version 2.5.5

from cli.

jasonvarga avatar jasonvarga commented on June 1, 2024

Try composer self-update and then composer global require statamic/cli:^3 again. Paste the entire output.

from cli.

mware avatar mware commented on June 1, 2024

Here's what I get in return

Upgrading to version 2.6.5 (stable channel).
   
Use composer self-update --rollback to return to version 2.5.5
macpro@MacBook-Pro-2 ~ % composer global require statamic/cli:^3
zsh: no matches found: statamic/cli:^3

from cli.

robdekort avatar robdekort commented on June 1, 2024

What about composer global update statamic/cli?

from cli.

jasonvarga avatar jasonvarga commented on June 1, 2024

Ok 😄 How about this:

composer global require "statamic/cli ^3.0"

from cli.

jasonvarga avatar jasonvarga commented on June 1, 2024

@robdekort If he has v1 in his composer.json file, an update isn't going to make the major jump to 3.

from cli.

robdekort avatar robdekort commented on June 1, 2024

Ah got it. I'll see myself out.

from cli.

mware avatar mware commented on June 1, 2024

Can I edit that file directly? Currently:

{
    "require": {
        "squizlabs/php_codesniffer": "*",
        "statamic/cli": "^1.0"
    }
}

from cli.

jasonvarga avatar jasonvarga commented on June 1, 2024

Yep, change that to ^3.0 then run composer global update.

from cli.

mware avatar mware commented on June 1, 2024

Success! The CLI tool now works as expected. Thank you so much for patience and sticking with this one. -Michael

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.