Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Following the README for type safety prevents/breaks npm's `min-release-age` option

Abierto
#728 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
javascript, typescript

Línea de trabajo

Start with README lines 498-516 and reproduce the failure using the listed .npmrc setting and npm commands. Inspect how the documented type-support dependency is installed, and consider the issue done when users can retain that type support while npm install and npm clean-install succeed with min-release-age enabled.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

The docs describe in the README that to get type support through JSDoc, you can install a dev dep.

If you turn on npm 11.10's new min-release-age option (used to help against supply chain attacks), you then will not be able to npm install your dependencies, even after a successful npm update.

If you uninstall or don't have the dev dep mentioned in the README, then trying to install it gives that error anyways.

The error looks like:

npm error code 1
npm error git dep preparation failed
npm error command /usr/local/bin/node /usr/local/share/npm-global/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/node/.npm --prefer-offline=false --prefer-online=false --offline=false --before=2026-08-16T23:36:27.301Z --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm error Exit prior to config file resolving
npm error cause
npm error --min-release-age cannot be provided when using --before

To Reproduce
Steps to reproduce the behavior:

  1. Add min-release-age=1 to .npmrc
  2. `npm i -D @actions/github-script@github:actions/github-script
  3. npm clean-install
  4. See error above

Expected behavior
I would expect to be able to use npm's min-release-age option when only using types from this package.

Lenguaje dominante
TypeScript
Estrellas
5k
Forks
586
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de actions/github-script

Todos los issues de actions/github-script

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.