Code Monkey home page Code Monkey logo

Comments (6)

francoispluchino avatar francoispluchino commented on June 27, 2024

The Yarn install command is used with the Composer install command. Otherwise, with the Composer update command, install command or the upgrade command of Yarn can be used, it depends if the node_modules folder is present (because the upgrade command of Yarn can not update the dependencies if they are not already installed, which is not the case of Composer for example).

You can see the code for:

However, it is possible to replace the commands of Yarn and NPM, so check if this is not the case in your configuration.

from foxy.

krissss avatar krissss commented on June 27, 2024

I known that.
But, composer require xx will trigger yarn update --non-interactive if the node_modules folder is present. Is this right?
If right, when I composer require one package (project already installed, and node_modules already exist), yarn will failed use yarn update --non-interactive

from foxy.

francoispluchino avatar francoispluchino commented on June 27, 2024

Yes, the Foxy update command is used for the require command of Composer, if the asset dependencies are already installed.

And indeed, the case of Yarn is that if there is a change of the dependencies, we must use the command install and not upgrade, which is not the case for NPM, which still accepts the update command.

from foxy.

francoispluchino avatar francoispluchino commented on June 27, 2024

Small precision, the error Outdated lockfile. Please run 'yarn install' and try again. thrown when the version of a package changes, but not for adding or removing a package, the upgrade command works correctly.

It would be good to check if the folder is synchronized or not, to return the good command. To could help to do this detection, run the yarn check command before and check the command return an error.

from foxy.

francoispluchino avatar francoispluchino commented on June 27, 2024

Can you check if this commit fix your bug?

from foxy.

krissss avatar krissss commented on June 27, 2024

Fixed.

from foxy.

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.