sigp / siren

User interface for Lighthouse
Apache License 2.0
48 stars 15 forks source link

when try to make: Error: spawn node-gyp ENOENT #261

Closed ip75 closed 3 months ago

ip75 commented 3 months ago

Describe the bug Siren building fails

To Reproduce Steps to reproduce the behavior:

  1. clone
  2. make

Expected behavior build completed successfully

Screenshots

stable ✔ $ make
yarn && yarn dev
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
warning chart.js@4.2.1: The engine "pnpm" appears to be invalid.
[3/4] Linking dependencies...
warning " > @testing-library/react-hooks@8.0.1" has incorrect peer dependency "react@^16.9.0 || ^17.0.0".
warning " > @testing-library/user-event@13.5.0" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > @uiw/react-textarea-code-editor@2.1.1" has unmet peer dependency "@babel/runtime@>=7.10.0".
warning " > react-d3-speedometer@1.1.0" has incorrect peer dependency "react@^17.0.0".
warning " > react-d3-speedometer@1.1.0" has incorrect peer dependency "react-dom@^17.0.0".
warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "react-scripts > eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
warning "@storybook/addon-essentials > @storybook/addon-docs > @babel/plugin-transform-react-jsx@7.21.0" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/addon-actions > react-inspector@5.1.1" has incorrect peer dependency "react@^16.8.4 || ^17.0.0".
warning " > @storybook/addon-essentials@6.5.16" has unmet peer dependency "@babel/core@^7.9.6".
warning "@storybook/addon-essentials > @storybook/addon-docs > @mdx-js/react@1.6.22" has incorrect peer dependency "react@^16.13.1 || ^17.0.0".
warning " > @storybook/preset-create-react-app@4.1.2" has unmet peer dependency "@babel/core@*".
warning " > @storybook/react@6.5.16" has unmet peer dependency "require-from-string@^2.0.2".
warning "@storybook/react > @babel/preset-flow@7.18.6" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/react > react-element-to-jsx-string@14.3.4" has incorrect peer dependency "react@^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1".
warning "@storybook/react > react-element-to-jsx-string@14.3.4" has incorrect peer dependency "react-dom@^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1".
warning "@storybook/test-runner > jest-playwright-preset@2.0.0" has unmet peer dependency "jest-circus@^28.0.0".
warning "@storybook/test-runner > jest-playwright-preset@2.0.0" has unmet peer dependency "jest-environment-node@^28.0.0".
warning " > storybook-tailwind-dark-mode@1.0.15" has unmet peer dependency "@storybook/api@^6.2.9".
warning " > storybook-tailwind-dark-mode@1.0.15" has unmet peer dependency "@storybook/components@^6.2.9".
warning " > storybook-tailwind-dark-mode@1.0.15" has unmet peer dependency "@storybook/core-events@^6.2.9".
[4/4] Building fresh packages...
[1/6] ⠠ lzma-native
[6/6] ⠠ electron
[-/6] ⠠ waiting...
[4/6] ⠠ electron-winstaller
error /eth/siren/node_modules/lzma-native: Command failed.
Exit code: 1
Command: node-gyp-build
Arguments:
Directory: /eth/siren/node_modules/lzma-native
Output:
node:events:495
      throw er; // Unhandled 'error' event
      ^

Error: spawn node-gyp ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:290:12)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn node-gyp',
  path: 'node-gyp',
  spawnargs: [ 'rebuild' ]

*** Error code 1

Stop.
make: stopped in /eth/siren

image

Desktop (please complete the following information):

Additional context stable ✔ $ yarn --version 1.22.19

stable ✔ $ node --version v18.20.3

rickimoore commented 3 months ago

@ip75 we have recently announced a new siren release candidate for v2.0.0. where we have completely removed storybook dependencies and no longer build an electron app. you can try this docker image or build from unstable branch and follow the instructions in the readme there.

ip75 commented 3 months ago

yes. You are right. It is ok on unstable branch. Thanks.