GithubHelp home page GithubHelp logo

Yarn installation is broken about wintersmith HOT 5 CLOSED

adius avatar adius commented on May 27, 2024
Yarn installation is broken

from wintersmith.

Comments (5)

VaelynPhi avatar VaelynPhi commented on May 27, 2024 1

FYI: anyone trying to dupe this issue who doesn't have yarn installed, make sure you install it via npm, not apt, as the yarn from apt in cmdtest isn't the same program.

I managed to dupe the issue on Ubuntu 16.04.02 and 17.04, but oddly yarn list doesn't show uglify-js anywhere, even under jade-legacy despite that it's in that package's package.json. My guess is that this is actually an issue with yarn, or at the very least a question for the yarn devs--maybe there's a reason it doesn't install uglify-js? On a quick inspection I couldn't find another package in the deps that didn't get installed, but that probably needs a more thorough check.

Updating to pug may fix it, but I'm only part sure because I merely replaced the node_modules/wintersmith packaged with a checkout of the pug-migrate branch and ran yarn in it to try and duplicate yarn's steps. What's weird is that doing this with the main wintersmith package doesn't result in uglify appearing in node_modules. Also odd is that jade-legacy specifies a newer version of uglify than pug. In pug, uglify appears as a requirement of its components. This still doesn't explain why yarn installs uglify for pug and not for jade-legacy.

Two notes: manually adding uglify in the mainline wintersmith package:

//after cloning and running yarn
cd node_modules/wintersmith
yarn add uglify-js
//return to repo root
cd ../../

Then returning to the repo root and running yarn build worked, except that the two consts in templates/fragen.jade in table#questionstable, capitalize and formatedCategories, threw errors as they are previously declared on the first run of the loop; I changed them to vars and everything worked.)

I still suspect this is a good question for the yarn people; it's odd that it doesn't install uglify-js for jade-legacy.

EDIT: also note that, if you do use the pug update, you'll have to rename a number of files and change the template arguments in their meta.

from wintersmith.

jnordberg avatar jnordberg commented on May 27, 2024

Root cause looks to be that jade-legacy fails because it can't find uglify-js. No idea why, it's listed in package.json https://github.com/jnordberg/jade-legacy/blob/master/package.json#L33

from wintersmith.

dagoss avatar dagoss commented on May 27, 2024

Maybe that would be fixed by #325 :)

from wintersmith.

adonespitogo avatar adonespitogo commented on May 27, 2024

Any update on this?

from wintersmith.

jnordberg avatar jnordberg commented on May 27, 2024

I'm unable to reproduce with yarn 1.5.1. Is this still a problem?

from wintersmith.

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.