GithubHelp home page GithubHelp logo

yarn support about hexo-cli HOT 5 CLOSED

hexojs avatar hexojs commented on August 25, 2024
yarn support

from hexo-cli.

Comments (5)

NoahDragon avatar NoahDragon commented on August 25, 2024

It's doable. Do you know if there is any function or package could easily check if an global package exists?

from hexo-cli.

DanielFGray avatar DanielFGray commented on August 25, 2024

I would think it's better to test whether an actual command is available rather than a global package, since it's heavily recommended to avoid installing yarn with npm.

command-exists seems to do that

from hexo-cli.

NoahDragon avatar NoahDragon commented on August 25, 2024

Cool, thanks.

from hexo-cli.

NoahDragon avatar NoahDragon commented on August 25, 2024

The fix is in PR #20, could you please take a look and test it?

from hexo-cli.

DanielFGray avatar DanielFGray commented on August 25, 2024

this still seems to use npm :\

if you haven't tried yarn I highly recommend it. it's much faster than npm, gives you an offline cache to install from, and (this is a bit silly but it's so nice) instead of having to do things like ./node_modules/.bin/foocmd files in that dir are available as yarn foocmd

from hexo-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.