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

Questions about installing Serverless Framework V4 binaries and scripts

Abierto
#12,988 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
20/100
Tipo de issue
Documentación
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
javascript
Área
tooling

Línea de trabajo

Comienza leyendo los archivos mencionados binary.js, run.js y postInstall.js; después, compara su comportamiento con el issue relacionado #12692. Rastrea cómo se gestionan la versión de Serverless Framework y la ruta de publicación. Se considera terminado cuando se hayan proporcionado respuestas autorizadas a las cinco preguntas sobre la instalación y la disponibilidad del código fuente, o se hayan documentado los límites de configuración compatibles.

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

Descripción

V4
Issue description

I have several questions about the binary files that binary.js installs when I run the serverless (sls) command, and the JavaScript files (such as sf-core.js) that the binary files appear to install under $HOME/.serverless/releases/x.y.z/.

Q.1 Under the following conditions, if I have already run the serverless (sls) command once and installed a binary file named serverless-<OS_TYPE>-<OS_CPU_ARCHITECTURE>-<SERVERLESS_BINARY_VERSION> (e.g. serverless-linux-amd64-0.0.2) locally using run.js and binary.js, is it guaranteed that it will not be overwritten the second time onwards? (I read binary.js and think the specifications are as written above, but I just want to confirm if my understanding is correct.)

  • Condition 1: Always run on the same OS type and OS arch (e.g. linux-amd64)
  • Condition 2: The version of the Serverless Framework is completely fixed in the frameworkVersion in serverless.yml (e.g. frameworkVersion: 4.4.18)

Q.2 What does the binary file serverless-<os.type>-<os.arch>- (e.g. serverless-linux-amd64-0.0.2) do? (I assume that this binary file reads the frameworkVersion: x.y.z specified in serverless.yml, if any, and then downloads the corresponding version of the Serverless Framework JavaScript files (such as sf-core.js) from the server you manage, and installs it under $HOME/.serverless/releases/x.y.z/. But is that correct? Does this binary file do anything else?)

Q.3 Is the source code for serverless-<os.type>-<os.arch>- available for viewing?

Q.4 Will the contents under the $HOME/.serverless/releases/x.y.z/ will be exactly the same as long as the frameworkVersion: x.y.z specified in serverless.yml does not change?)

Q.5 By default, JavaScript files (such as sf-core.js) seem to be installed in $HOME/.serverless/releases/x.y.z/, but can I change this path to a path of my choice? For example, can I change it to the same directory as binary.js as follows?

/<PATH>/<TO>/<MY_SERVERLESS_PROJECT>/node_modules/serverless
├── README.md
├── binary.js
├── node_modules
│   └── .bin
│       └── serverless-linux-amd64-0.0.2
├── package.json
├── postInstall.js
├── .serverless
│   └── releases
│       └── 4.4.18
└── run.js
Context

No response

Lenguaje dominante
JavaScript
Estrellas
46.9k
Forks
5.7k
Merge medio
12 h 57 min
PR fusionados (30 d)
61

Guía de contribución

Abrir la guía de contribución

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 serverless/serverless

Todos los issues de serverless/serverless

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.