eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.06k stars 2.5k forks source link

Support for Node 20 #13177

Closed jgfoster closed 7 months ago

jgfoster commented 11 months ago
yarn install v1.22.19
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning @theia/preview > @types/highlight.js@10.1.0: This is a stub types definition. highlight.js provides its own type definitions, so you do not need this installed.
warning @theia/cli > puppeteer@19.7.2: < 21.3.7 is no longer supported
warning @theia/cli > @theia/application-manager > electron-rebuild@3.2.9: Please use @electron/rebuild moving forward.  There is no API change, just a package name change
warning @theia/cli > @theia/application-manager > source-map-loader > abab@2.0.6: Use your platform's native atob() and btoa() methods instead
warning @theia/cli > @theia/application-manager > electron-rebuild > node-gyp > make-fetch-happen > cacache > @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning "@theia/file-search > @theia/process > node-pty@0.11.0-beta17" has unmet peer dependency "node-gyp@^8.3.0".
warning "@theia/search-in-workspace > react-autosize-textarea@7.1.0" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
warning "@theia/search-in-workspace > react-autosize-textarea@7.1.0" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0".
warning "@theia/messages > react-perfect-scrollbar@1.5.8" has unmet peer dependency "react@>=16.3.3".
warning "@theia/messages > react-perfect-scrollbar@1.5.8" has unmet peer dependency "react-dom@>=16.3.3".
warning "@theia/preview > markdown-it-anchor@5.0.2" has unmet peer dependency "markdown-it@^8.4.1".
[4/4] 🔨  Building fresh packages...
⠁ 
⠁ 
[1/12] ⠂ drivelist
[1/12] ⢀ drivelist
[2/12] ⢀ keytar                                                                                    [3/12] ⢀ msgpackr-extract
[4/12] ⢀ nsfw
[2/4] 🚚  Fetching packages...
error /Users/jfoster/temp/my-app/node_modules/node-pty: Command failed.
Exit code: 1
Command: node scripts/install.js
Arguments: 
Directory: /Users/jfoster/temp/my-app/node_modules/node-pty
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' ]

error knex-migrator@5.1.5: The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.13.0 || ^18.12.1". Got "20.5.0"
warning Error running install script for optional dependency: "/Users/jfoster/temp/my-app/node_modules/cpu-features: Command failed.
Exit code: 127
Command: node buildcheck.js > buildcheck.gypi && node-gyp rebuild
Arguments: 
Directory: /Users/jfoster/temp/my-app/node_modules/cpu-features
Output:
/bin/sh: node-gyp: command not found"
info This module is OPTIONAL, you can safely ignore this error
vince-fugnitto commented 10 months ago

@jgfoster I'm a little confused since Node v20 should already be supported and we are using it currently during CI.

Can you confirm where knex-migrator is coming from? (perform yarn why knex-migrator).

$ yarn why knex-migrator
yarn why v1.22.21
[1/4] Why do we have the module "knex-migrator"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
error We couldn't find a match!
Done in 0.39s.
tsmaeder commented 7 months ago

Closing due to inactivity. Without further info, I don't see what we can do.