Comments (4)
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.
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
andnpm 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.jsV 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
andyarn
from dashy.
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.
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)
- [BUG] <title>MVG Connections always shows the connection between Marienplatz and Giesing no matter how the config file is modified. HOT 2
- Hi, I'm new here and I could really use some help HOT 1
- [QUESTION] how to get widgets working when using nginxproxymanager HOT 12
- [FEATURE_REQUEST] Add a startpage view optimized to reduce load time HOT 2
- 导航图标标题 HOT 1
- [FEATURE_REQUEST] widget for uptime-kuma HOT 2
- [FEATURE_REQUEST] healthchecks continues checking HOT 1
- How to change --content-max-width HOT 6
- deployed on vercel HOT 10
- [QUESTION] Serve assets only to logged in users HOT 3
- [FEATURE_REQUEST] Unify weather and weather forecast widgets HOT 5
- [QUESTION] Custom HTML? HOT 16
- All tickets related to dashy not rebuilding automatically HOT 1
- [SHOWCASE] MNDashboard HOT 4
- [BUG] Dashy crashlooping after last upgrade to 2.1.2 HOT 13
- [QUESTION] Build from Source not working anymore 2.1.2? HOT 3
- [BUG] Authentication settings cannot be saved to a configuration file HOT 2
- [BUG] Build Failed Vercel HOT 6
- [BUG] Dashy v2.1.2 consuming all assigned resources after changing config (either via GUI or direct conf.yml change) HOT 13
- [QUESTION] Alpine 3.15 LXC unmet peer dependency warnings? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dashy.