OAI / tools.openapis.org

A collection of open-source and commercial tools for creating your APIs with OpenAPI - Sourced from and published for the community
https://tools.openapis.org/
96 stars 26 forks source link

Error while runing yarn install #91

Closed spacether closed 10 months ago

spacether commented 10 months ago

Describe the bug When I run yarn install I get an error

To Reproduce Steps to reproduce the behavior:

  1. Start with macOS Monterey v12.6.6, 1.6 GHz Dual-Core Intel Core i5
  2. run brew install yarn (successfully installs yarn version 1.22.19)
  3. clone this repo and cd into it, run yarn install
  4. See error
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
warning Error running install script for optional dependency: "/Users/justinblack/programming/tooling/node_modules/glob-watcher/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /Users/justinblack/programming/tooling/node_modules/glob-watcher/node_modules/fsevents
Output:
node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn node-gyp ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484: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:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn node-gyp',
  path: 'node-gyp',
  spawnargs: [ 'rebuild' ]
}

Node.js v20.5.0"
info This module is OPTIONAL, you can safely ignore this error
✨  Done in 47.66s.

Expected behavior No errors

Screenshots N/A

Desktop (please complete the following information):

Additional context I see that the module is optional, but why is there an error? Running build instructions before making a PR on my branch: https://github.com/spacether/Tooling/tree/updates_openapi_json_schema_generator