Code Monkey home page Code Monkey logo

Comments (4)

samdark avatar samdark commented on September 27, 2024

That should be ./vendor/bin/yii serve.

from app.

push32 avatar push32 commented on September 27, 2024

when i'm using this command

composer create-project --prefer-dist --stability=dev yiisoft/app <your project>

and tried to running

composer run serve

its show

> yii serve
sh: yii: command not found
Script yii serve handling the serve event returned with error code 127

and i'm looking into the ./vendor/bin/ it's empty

hope this information helpful

from app.

samdark avatar samdark commented on September 27, 2024

Seems your composer installation did not go well. I guess, because of #28.

It should be:

λ composer run serve
> yii serve
[Mon Jul 13 13:43:33 2020] PHP 7.4.3 Development Server (http://localhost:8080) started
Server started on http://localhost:8080/
Document root is "C:\src\delete_me\yii3start/public"
Quit the server with CTRL-C or COMMAND-C.

That's what I get locally.

from app.

Tarekajaj avatar Tarekajaj commented on September 27, 2024

the issue appears on macos, to fix it in composer.json update the line "serve": "yii serve", to "serve": "./yii serve", to make it work

from app.

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.