getumbrel / umbrel-dashboard

[Deprecated] Moved to https://github.com/getumbrel/umbrel/tree/master/packages/dashboard. Web-based dashboard to interact with your Umbrel.
https://github.com/getumbrel/umbrel/tree/master/packages/dashboard
Other
133 stars 69 forks source link

Installing dependencies with "yarn" fails #356

Closed markshep closed 3 years ago

markshep commented 3 years ago

I cloned the git repo on my Mac, installed the MacPorts "yarn" package, then ran "yarn" in the root directory of the repo. It did some stuff then failed with an error:

yarn install v1.22.10
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "bootstrap-vue > bootstrap@4.5.0" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
[4/4] πŸ”¨  Building fresh packages...
[1/6] ⠐ bootstrap-vue
[-/6] ⠐ waiting...
[3/6] ⠐ fsevents
[6/6] ⠐ yorkie
warning Error running install script for optional dependency: "/Users/mark/code/umbrel-dashboard/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/mark/code/umbrel-dashboard/node_modules/fsevents
Output:
node:events:346
      throw er; // Unhandled 'error' event
      ^

Error: spawn node-gyp ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:480:16)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
    at onErrorNT (node:internal/child_process:480:16)
    at processTicksAndRejections (node:internal/process/task_queues:81:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn node-gyp',
   Done in 17.94s.

Looks like maybe it's a problem with the fsevents package?

AaronDewes commented 3 years ago

Can you try updating the sass package in package.json to 1.34.1?

AaronDewes commented 3 years ago

Oh, I don't think that's going to help, please wait a bit

AaronDewes commented 3 years ago

Can you try the fix in https://github.com/getumbrel/umbrel-dashboard/pull/357?

markshep commented 3 years ago

That works for me:

yarn install v1.22.10
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning "bootstrap-vue > bootstrap@4.6.0" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
[4/4] πŸ”¨  Building fresh packages...
✨  Done in 16.30s.