Giter Site home page Giter Site logo

Yarn build not working about dashy HOT 4 CLOSED

lissy93 avatar lissy93 commented on May 22, 2024
Yarn build not working

from dashy.

Comments (4)

jacobhweeks avatar jacobhweeks commented on May 22, 2024

Any help is greatly appreciated. I might have misunderstood something because it seems that yarn is used for testing apps. Should I not have run "sudo apt install yarn"?

from dashy.

Lissy93 avatar Lissy93 commented on May 22, 2024

Hi @jacobhweeks - thanks for raising this. I've not seen this error message before, and have been unable to recreate it. Here are a couple of things to try, if none of them work, then please provide more info, so that I can look into this for you.


Option 1 - Wrong yarn package installed

From your error message, it sounds to me like you've either not got yarn properly installed, of you've got the wrong package all together. How did you install it, if you ran sudo apt install yarn then this will fetch a package from cmdtest, which is a totally different project. You are looking for yarn the dependency manager

If this is the case, just uninstall it, and then install the correct package, e.g. for Debian:

  • sudo apt remove yarn
  • curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
  • echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  • sudo apt update && sudo apt install yarn

You can also just install yarn using NPM, which may be easier: First remove obsolete stuff: sudo apt remove cmdtest yarn, then install npm: sudo apt install npm, and finally yarn: sudo npm install -g yarn.
See the docs for more info


Option 2 - Alternative work arounds

  • Try using NPM instead: So clone, cd, then run npm install, npm run build and npm start
  • Try using Docker instead, and all of the system setup and dependencies will already be taken care of. So from within the directory, just run docker build -t lissy93/dashy . to build, and then use docker start to run the project, e.g: docker run -it -p 8080:80 lissy93/dashy (see the readme for more info)

Option 3 - Provide more info

If your still facing issues, then would you mind sharing details about your environment as well as the logs for this problem, so that I could look into this?

  • Which OS, distro, architecture and version are you using? e.g. cat /etc/os-release
  • Where applicable, which version of Yarn, NPM, NVM, Node do you have installed? e.g. yarn -v && npm -v && node -v
  • What is the full output of the offending command, and what do you see in your logs (usually in ~/.npm/_logs/*)

Prior to doing so, please check that everything is set up properly

  • Ensure that you have the latest version of yarn V 1.22.5, as well as Node.js V 14.17.0 or later
  • Ensure that your on the latest version of the master branch of Dashy, git checkout master && git pull origin master
  • Ensure you don't have any process.env variables manually set, which could cause warnings to halt the build
  • Ensure your user has all the required permissions on your system (once everything's installed, you shouldn't need sudo)
  • Ensure that your systems date and time are correct
  • Try clearing the cache, and reinstalling dependencies: yarn cache clean, rm -rf node_modules\ yarn.lock and yarn

from dashy.

jacobhweeks avatar jacobhweeks commented on May 22, 2024

Hi @Lissy93,

Thank you so much. I've got it running now using the first option that you provided. I would be interested in working on this or a fork of it. I'm relatively new to GitHub but have some development experience and would like to add features once I have had the time to look everything over to get the 'lay of the land'. Thanks again!

from dashy.

Lissy93 avatar Lissy93 commented on May 22, 2024

Great, glad it's all working now :)
Let me know if you need anything else


For anyone else experiencing yarn-related errors, I've updated the Troubleshooting Guide with instructions on how to fix.

from dashy.

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.