Comments (21)
I don't yet know why the rebuild sqlite command it failing. I'll look into it. As for the collection remaining empty, and some screens not working: that is normal
from dopamine.
@TragicLifeHu I'll update the build instructions this week. I've reopened the issue to keep track of it.
from dopamine.
@Cyberdroid1 Please try without running npm audit fix --force
This command is dangerous, because it updates dependencies of dependencies. This usually causes a massive amount of problems.
from dopamine.
Please do'nt try to fix these and read this pinned issue: #68
The pinned issue contains an article that might clear things up: https://www.voitanos.io/blog/don-t-be-alarmed-by-vulnerabilities-after-running-npm-install/
from dopamine.
It seems that the rebuild-sqlite command also rebuilt sharp. This broke the sharp module. I don't know why it breaks it though. Using native modules in Electron is quite complicated. However, it was never my intent to rebuild sharp with the rebuild-sqlite command, so I've now updated that command in package.json, so that it only builds better-sqlite3. You should be able to fix your sharp issue by doing this:
- Get the latest commit in this repository
- Delete the Sharp directory from node_modules
- Run npm install to reinstall sharp
- Run npm start again to start the application
Next time you run npm run rebuild-sqlite should not break sharp again. I'll try to further understand why rebuilding sharp breaks it though.
from dopamine.
It's not possible to build version 3 following the instruction above on Windows now. (And on my openSUSE Leap 15.2 I didn't success, too)
Microsoft had shut down everything about Visual Studio 2015, including Microsoft Build Tools 2015. Installing windows-build-tools vs2015 will result in vs2017 to be installed.
More info here: felixrieseberg/windows-build-tools#249
As for @Cyberdroid1 's issue mentioned above, I found this: https://www.programmersought.com/article/19371828050/
I don't know many about Node.js, so I just try building for fun. Sorry for troubling
from dopamine.
First Install NodeJS and NPM.
Linux Debian/Debian-Based:
- Run:
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt install -y nodejs
Windows:
- Get the .exe from NodeJS Downoads
- Open CMD Prompt and Run:
npm install --global --production windows-build-tools --vs2015
Mac:
- Get the PKG installer from NodeJS Downloads
Or use Homebrew For Mac:
-
Install XCode from App Store
-
Open Terminal and Run:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install node
Building
- If you are on Linux, Clone Dopamine with Git Clone (See readme) or with windows and mac, download and extract the zip.
Then go into the Dopamine folder and open a Terminal/CMD Prompt window there.
Now run:
npm install
npm run rebuild-sqlite
npm start # Start the program
npm run electron:windows # Build for Windows
npm run electron:linux # Build for Linux
npm run electron:mac # Build for Mac
Building for Linux gives a .AppImage, .snap, .deb, and a .rpm.
.AppImage, .snap, and .deb gives a blank screen tho. Didn't Try RPM.
from dopamine.
from dopamine.
Trying to run the command npm run rebuild-sqlite
fails on my Win10 PC.
Please help me. I followed everything else perfectly.
from dopamine.
Trying to run npm start
gives more error.
Is it because I ran npm audit fix --force
?
from dopamine.
But, the command npm run rebuild-sqlite
always fails. What about that?
from dopamine.
Have you installed the Windows build tools?
from dopamine.
Yes. See the image above I have attached.
from dopamine.
I started again from scratch.
Running npm install
keeps giving vulnerability errors.
from dopamine.
After running npm audit fix
, I still get some vulnerability errors. How do I fix that?
from dopamine.
Ok, so I tried again, without fixing anything. It gets rebuild. And it opens on npm start
. When the window opens, it is all blank. Nothing in it. The Inspect menu on the right says something that sharp module is causing problem/not found. How do I fix that?
from dopamine.
Which version of sharp is listed when you perform this command?
npm list sharp
from dopamine.
0.25.4
from dopamine.
Why does the command npm run rebuild-sqlite
looks for a specific file location? It should run in its present repository, right? I keep getting error for invalid file location. Though I can change the command for the same, but still, can this not be fixed?
from dopamine.
Thanks, the app builds correctly now. The other problem that I face is this --
The library stays blank. The Manage collections button does not do anything. Please help me with this.
from dopamine.
@TragicLifeHu With some delay, I've updated the build instructions. I tested the instructions on 2 clean Windows 10 PC's. The trick is to install Node.js including the Tools for Native Modules.
from dopamine.
Related Issues (20)
- How to Suppress This Error on Arch Linux (name mismatch/version mismatch) HOT 11
- m4a audio files with hash in the file name cannot be played
- Compilation faliure code: ELIFECYCLE
- Song length shown in Dopamine and reported in discord rich presence wrong
- "Show in folder" context action does nothing HOT 3
- [Feature Request] I want to display them in order of track number HOT 5
- ζ―ζARMδΉ HOT 1
- Feature Request: Multiple Artist support in Artist section HOT 3
- messy code HOT 2
- Disc Number doesn't get recognized by other players. HOT 1
- Dracula colors for Dopamine HOT 2
- specific custom genres are not shown properly HOT 4
- Add Libre.fm and Listenbrainz support
- Add lyrics support HOT 1
- Windows Compatibility HOT 2
- Last.fm scrobbling not working as expected. HOT 9
- Dopamine won't play track with Octothorpe (#) in filename, Related to Bug #567 HOT 4
- Certain songs go into their own albums HOT 1
- No theme variable for tooltip/button foreground colors HOT 1
- Feature Request: display audio specs of track playing HOT 1
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 dopamine.