Errors in installation
corollari opened this issue · comments
Description
While installing the dependencies with yarn I got errors several times and when I finally got it installed correctly it failed to run.
Most of the errors seem to be caused by yarn so I don't know if there's much that can be done on this repo, but I thought it might be interesting for you to learn about the errors I encountered and how I fixed them.
Environment
Fedora 30 (Linux)
Reproduce
I installed with yarn
three times and run it with yarn dev
after the last installation.
Output
First installation attempt:
yarn install v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
[----------------------------------------------------------------------] 0/1762
[4/4] Building fresh packages...
[-/4] ⠐ waiting...
[2/4] ⠐ phantomjs-prebuilt
[-/4] ⠐ waiting...
error /home/corollari/projects/neo-burner/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /home/corollari/projects/neo-burner/node_modules/electron
Output:
Downloading tmp-8793-0-electron-v5.0.6-linux-x64.zip
[============================================>] 100.0% of 65.76 MB (175.24 kB/s)
Error deleting cache file: ENOENT: no such file or directory, unlink '/home/corollari/.cache/electron'
/home/corollari/projects/neo-burner/node_modules/electron/install.js:49
throw err
^
Error: ENOENT: no such file or directory, rename '/home/corollari/.cache/electron/tmp-8793-0-electron-v5.0.6-linux-x64.zip' -> '/home/corollari/.cache/electron/
Note: After the error occurred I checked /home/corollari/.cache and the electron
directory wasn't there.
Second installation attempt:
Afterwards, I tried installing again and got the following errors:
yarn install v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
My network connection was good so I imagine I got rate-limited by npm due to the large download (first install) I did right before.
Third installation attempt:
After a while I tried it again and got it working this time:
[corollari@localhost neo-burner]$ yarn
yarn install v1.16.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 796.78s.
First execution attempt:
Tried to run it with yarn dev
but it failed:
[corollari@localhost neo-burner]$ yarn dev
yarn run v1.16.0
$ concurrently "BROWSER=none yarn start" "wait-on http://localhost:3000 && electron ."
$ node scripts/start.js
[0] Cannot find module 'file-loader'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This can be resolved with yarn add file-loader
. A fix to package.json is scheduled.