redhat-developer / redhat-developer/vscode-java
vscode-java doesn't build on Mac with Node 14
Abierto
Nadie ha tomado este issue todavía.
build/infra
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.3k
- Forks
- 546
- Merge medio
- 20 h 1 min
- PR fusionados (30 d)
- 11
Descripción
Using the same node 14.19.1 as Jenkins, the project fails to build on my Mac.
❯ node --version
v14.19.1
❯ npm ci
npm WARN prepare removing existing node_modules/ before installation
> fsevents@1.2.13 install /Users/fbricon/Dev/projects/vscode-java/node_modules/glob-watcher/node_modules/fsevents
> node install.js
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module 'nan'
Require stack:
- /Users/fbricon/Dev/projects/vscode-java/node_modules/glob-watcher/node_modules/fsevents/[eval]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at [eval]:1:1
at Script.runInThisContext (vm.js:134:12)
at Object.runInThisContext (vm.js:310:38)
at internal/process/execution.js:81:19
at [eval]-wrapper:6:22
at evalScript (internal/process/execution.js:80:60) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/fbricon/Dev/projects/vscode-java/node_modules/glob-watcher/node_modules/fsevents/[eval]'
]
}
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/fbricon/.nvm/versions/node/v14.19.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Darwin 21.6.0
gyp ERR! command "/Users/fbricon/.nvm/versions/node/v14.19.1/bin/node" "/Users/fbricon/.nvm/versions/node/v14.19.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/fbricon/Dev/projects/vscode-java/node_modules/glob-watcher/node_modules/fsevents
gyp ERR! node -v v14.19.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
added 875 packages in 13.275s
It builds when I start using Node 16
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
No se indica ningún archivo fuente ni ninguna prueba. Reproduce el fallo en macOS con Node 14.19.1 usando npm ci y luego inspecciona el error de instalación de fsevents relacionado con la ausencia del módulo nan. Se considera terminado cuando el proyecto se instala y compila correctamente con la versión de Node utilizada por Jenkins.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- node.js, typescript
- Área
- build-system
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100