InfiniteLibrary / infinite-electron

An Electron-based cross-platform desktop reader for free ebooks
MIT License
38 stars 3 forks source link

Won't build (command not found: install-app-deps) #15

Open JonathanReeve opened 7 years ago

JonathanReeve commented 7 years ago

Hi everyone! I'm subscribed to the old Infinite Library repo from the first hackathon, so I get all the notifications. Since this project looks super interesting, I thought I'd build it and give it a try. Sadly, I just can't figure out how to get it to build. Here's what I've tried:

git clone https://github.com/InfiniteLibrary/infinite-electron
cd infinite-electron
yarn

and here's what I get:

$ yarn
yarn install v0.20.0
[1/4] Resolving packages...
success Already up-to-date.
$ concurrently "install-app-deps" "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json"
[0] zsh:1: command not found: install-app-deps
[0] install-app-deps exited with code 127
[1] node node_modules/fbjs-scripts/node/check-dev-engines.js package.json exited with code 0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I tried npm install -g install-app-deps, and that gives me the executable install-app-deps, but then I get the same error as above, even after restarting the session.

egardner commented 7 years ago

Hi @JonathanReeve! What versions of Node & NPM (and what OS) are you running? I just did a fresh install on a mac and was able to build successfully, but you probably have some slight differences in setup that we aren't handling properly.

Try yarn install first, and then yarn run dev. You shouldn't need the install-app-deps as a global.

Also, if you want to see the (very rough / beta) app without having to build it, you an download one of the images in the Releases tab to start.

JonathanReeve commented 7 years ago

This is what I get with yarn install:

$ yarn install
yarn install v0.20.0
[1/4] Resolving packages...
success Already up-to-date.
$ concurrently "install-app-deps" "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json"
[0] zsh:1: command not found: install-app-deps
[0] install-app-deps exited with code 127
[1] node node_modules/fbjs-scripts/node/check-dev-engines.js package.json exited with code 0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Here are my versions:

$ node --version && npm --version
v7.6.0
4.4.1

And system information:

$ archey3 

               +                OS: Arch Linux x86_64
               #                Hostname: dh-usb
              ###               Kernel Release: 4.9.11-1-ARCH
             #####              Uptime: 5 days, 0:44
             ######             WM: None
            ; #####;            DE: GNOME
           +##.#####            Packages: 1731
          +##########           RAM: 2749 MB / 7901 MB
         #############;         Processor Type: Intel(R) Core(TM) M-5Y71 CPU @ 1.20GHz
        ###############+        $EDITOR: nvim
       #######   #######        Root: 45G / 48G (93%) (ext4)
     .######;     ;###;`".      
    .#######;     ;#####.       
    #########.   .########`     
   ######'           '######    
  ;####                 ####;   
  ##'                     '##   
 #'                         `#  

Despite the error messages, though, it almost works when I run yarn run dev. I can read a few books! Neat project.