docs: README says Node 22 is required, but .nvmrc pins v24 and preinstall enforces it
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, node.js
Línea de trabajo
Comienza con README.md y luego compara sus prerrequisitos con .nvmrc y scripts/node-check.js para documentar la versión de Node impuesta y el comportamiento de preinstall. Revisa las instrucciones de pruebas de los paquetes, incluido el comando de packages/layout_editor node --test src/lib/*.test.js y el requisito de ejecutar las pruebas del paquete desde dentro del paquete. La tarea estará terminada cuando los colaboradores puedan instalar la versión correcta de Node y encontrar los comandos de prueba relevantes sin tener que leer archivos package.json.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
README.md tells new contributors to install Node 22:
- Node.js: Version 22 (LTS) is required.
But .nvmrc pins v24.0.0, and scripts/node-check.js runs on preinstall and enforces the .nvmrc major:
const expectedVersion = fs.readFileSync(nvmrcPath).toString().trim();
const expectedMajor = semver.major(expectedVersion);
if (!semver.satisfies(process.version, `^${expectedMajor}`)) {
console.error(`Error: Required Node.js major version is ${expectedMajor}, but found ${process.version}. ...`);
process.exit(1);
}
So anyone who follows the README, installs Node 22 and runs yarn is rejected at preinstall before a single dependency is fetched. The README is the first thing a new contributor reads, and following it exactly is what breaks their setup.
The surrounding instructions have the same gap — they say:
nvm install <version>
nvm use <version>
Replace
<version>with the required Node.js version
while never saying that nvm install / nvm use with no argument read .nvmrc on their own, which is the thing that cannot drift.
Also missing: how to run the tests
There is no CONTRIBUTING.md in this repo and the README never says how to run tests. Working out that packages/layout_editor runs node --test src/lib/*.test.js, and that a package's tests have to be run from inside that package (otherwise Babel resolves its root config from the wrong cwd and never finds packages/react/babel.config.js), is currently something each contributor rediscovers by reading package.json files.
Proposed change
- Rewrite the Prerequisites bullet so
.nvmrcis named as the source of truth, shownvm install/nvm usewith no argument, and mention thatyarnverifies this onpreinstalland what the failure looks like. - Add a short Running the tests section covering which packages have tests and how to run them, including the run-from-inside-the-package detail.
This is the exact thing that cost me the most time getting started, so I'd like to write it. Happy to split it into two PRs if you'd prefer the version fix on its own.
- Lenguaje dominante
- JavaScript
- Estrellas
- 168
- Forks
- 382
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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.
Más de RocketChat/EmbeddedChat
-
test: isMessageSequential in layout_editor has no coveragePosiblemente ocupada @ishan-one8 la tomó hace 21 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
RocketChat/EmbeddedChat#1373 ·
-
feat : Keep Emoji Picker open for continuous multi-emoji selectionPosiblemente ocupada @iRahul360 la tomó hace 57 días. Abiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
RocketChat/EmbeddedChat#1360 · 1 comentario ·
-
Permissions change-detection in useFetchChatData is dead — applyPermissions re-runs on every callPosiblemente ocupada @yash113gadia la tomó hace 134 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
RocketChat/EmbeddedChat#1317 ·
-
Only the last emoji shortname in a message is converted to unicodePosiblemente ocupada @yash113gadia la tomó hace 134 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
RocketChat/EmbeddedChat#1315 ·
-
bug: "Last login" shows ambiguous weekday with no date for logins older than todayPosiblemente ocupada @yash113gadia la tomó hace 135 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RocketChat/EmbeddedChat#1313 ·
Todos los issues de RocketChat/EmbeddedChat
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
t0ggles
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nolimits4web/swiper#8240 · 1 comentario ·
-
netbox status: backlog topic: testing type: housekeeping
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
netbox-community/netbox#23395 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
[scanner] check:spelling skips blog/ — posts and author metadata are never spell-checkedPosiblemente ocupada @hivecommons-hive la tomó hoy. Abiertoagent/scanner bug hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
cncf/endusers#1452 · 1 comentario ·
Los mantenedores suelen responder en 1 día