GithubHelp home page GithubHelp logo

[Install] Composer error about luya HOT 6 CLOSED

neoacevedo avatar neoacevedo commented on August 22, 2024
[Install] Composer error

from luya.

Comments (6)

nadar avatar nadar commented on August 22, 2024

Hi @neoacevedo, thanks for the report. I have removed the composer.lock file, you can try again. I just checked the linux report from your report because it states Your lock file does not contain a compatible set of packages. Please run composer update. so you could just run composer update

from luya.

neoacevedo avatar neoacevedo commented on August 22, 2024

Yes, but now I get another error:

The file or directory to be published does not exist: /vendor/bower/jquery/dist

from luya.

nadar avatar nadar commented on August 22, 2024

even if you start a clean project? The Yii Framework requires that dependency and its handled via https://asset-packagist.org. What version of composer do you have? You get that error when you try to run the website? What does your vendor contain, there must be a bower folder or similar? Have you changed something in the config (i don't think so, but just asking).

So you get that error after which step of the installation?

from luya.

neoacevedo avatar neoacevedo commented on August 22, 2024

Yes, in a clean project. I have tried with composer 1.4 and composer 2.0 with the exact same result.

imagen

Changing something? No, I just run the commands and after that I try to run the website.

This error I get just after last step of installation when I try to run the website.

My guess is on this part of composer.json:

        "asset-installer-paths": {
            "bower-asset-library": "vendor/bower"
        },

The bower directory inside vendor is bower-asset.

UPDATE:

In env-local.php I have configured the aliases just like any yii2 config.php template:

    'aliases' => [
        '@bower' => '@vendor/bower-asset',
        '@npm'   => '@vendor/npm-asset',
    ],

It did the trick.

from luya.

nadar avatar nadar commented on August 22, 2024

@neoacevedo thanks for the update. but i assume its the same problem as #2151, this alias definition is available in the config.php of latest kickstarter and env-local.php is not used anymore. Check this folder (https://github.com/luyadev/luya-kickstarter/tree/master/configs) in latest kickstarter, we only have a single config.php - so you have installed a very old version of the kickstarter even though your composer create project commands looks absolute correctly.

from luya.

nadar avatar nadar commented on August 22, 2024

I am going to close this issue because:

  • Its a question (Please post questions at LUYA discussions)
  • Missing information's
  • No more activity
  • No one picked up the task (no Pull Request received)

If you think this is still important or there are more/new informations. Please reopen the issue and let us know.

If this is a problem or a feature you like to discuss, join our discussion: LUYA discussions. We try to keep our issue tracker as clean as possible in order to focus on active issues.

from luya.

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.