miraclx / freyr-js

A tool for downloading songs from music streaming services like Spotify and Apple Music.
https://git.io/freyr-js
Apache License 2.0
1.39k stars 90 forks source link

command not found? not sure what I messed up #597

Closed toughguystudios closed 8 months ago

toughguystudios commented 8 months ago

Hey, I'm using MacOSX and have Apple Music. I installed Python (2.7.16), I installed NodeJS (10.1.0), but I think they may have been an issue regarding AtomicParsley, was I supposed to put this is in a specific directory before I ran it? or just run it as is (after unzipping the zip file)?

I then built the program (git clone https://github.com/miraclx/freyr-js.git freyr) and it compiled the folder and all the files.

The issue I'm having is I try to download music from Apple Music, I enter the following:

freyr https://music.apple.com/us/album/im-sorry-im-not-sorry-ep/1491795443

and receive the following: zsh: command not found: freyr

If I drag freyr.sh into terminal shell, I get this:

node:internal/errors:497 ErrorCaptureStackTrace(err); ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'conf' imported from /Users/ryangaines/freyr/cli.js at new NodeError (node:internal/errors:406:5) at packageResolve (node:internal/modules/esm/resolve:789:9) at moduleResolve (node:internal/modules/esm/resolve:838:20) at defaultResolve (node:internal/modules/esm/resolve:1043:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38) at ModuleWrap. (node:internal/modules/esm/module_job:85:39) at link (node:internal/modules/esm/module_job:84:36) { code: 'ERR_MODULE_NOT_FOUND' }

Node.js v20.9.0

Is there something I forgot to do? or a different tutorial I should be following? Do I need to add permissions to something as an admin? Please clarify what I am missing, thank you.

miraclx commented 8 months ago

Hi @toughguystudios, have you resolved this?

toughguystudios commented 8 months ago

I believe so yes, it was strange. when I used the "build it from source" (git clone https://github.com/miraclx/freyr-js.git freyr cd freyr) and tried to use the program afterwards this was the error I received. after I used the "npm install freyr" method, the program then worked. but it only works if I drag it into terminal. If I type freyr then the web address, it says command not found.