Hola chicos, estoy recibiendo este error cuando ejecuto npm install
openssl config failed: error:02001002:system library:fopen:No such file or directory openssl config failed: error:02001002:system library:fopen:No such file or directory npm ERR! Error while executing: npm ERR! C:\Users\rmittal\AppData\Local\Programs\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/xxxx/xxx-api.git npm ERR! npm ERR! Host key verification failed. npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\rmittal\AppData\Roaming\npm-cache\_logs\2021-04-02T06_15_51_313Z-debug.loggit@github.com/xxxx/xxx-api.git es mi otro repositorio, solo busqué el error de instalación de npm: "Falló la verificación de la clave del host". pero no me llevó a la solución. Puede alguien ayudarme por favor?
Versión utilizada:
D:\>node -v v10.23.1 D:\>npm -v openssl config failed: error:02001002:system library:fopen:No such file or directory openssl config failed: error:02001002:system library:fopen:No such file or directory 6.14.10El repositorio también está configurado correctamente
Un ssh-keyscan -H github.com >> ~/.ssh/known_hosts sugerido en la respuesta que mencionas debería funcionar, pero como estás en un CMD, debería ser:
ssh-keyscan -H github.com >> %USERPROFILE%/.ssh/known_hostsAsumiendo:
C:\path\to\Git\usr\bin (donde reside ssh-keyscan.exe ) Pruebe el último punto con (independientemente de npm ), en cualquier carpeta
git ls-remote git@github.com/xxxx/xxx-api.git Si puede enumerar los encabezados remotos de ese repositorio privado, eso significa que tiene acceso a él. Y debería solicitar agregar una huella digital en %USERPROFILE%/.ssh/known_hosts si es necesario.
Luego puede probar el comando npm nuevamente.