Error archivo .sh bash

  • Autor Autor Edrien
  • Fecha de inicio Fecha de inicio
Edrien

Edrien

Lambda
Verificación en dos pasos activada
Verificado por Whatsapp
Tengo un archivo de (.sh) que instala node, mongodb y otras consillas, pero me esta dando error al ejecutarlo.
hace algunos dias me funcionaba perfecto.


Insertar CODE, HTML o PHP:
npm WARN notsup Unsupported engine for npm@8.1.4: wanted: {"node":"^12.13.0 || ^                                                                                                                                                             14.15.0 || >=16"} (current: {"node":"10.24.1","npm":"6.14.12"})
npm WARN notsup Not compatible with your version of node/npm: npm@8.1.4


+ npm@8.1.4
added 73 packages from 18 contributors, removed 286 packages and updated 149 pac                                                                                                                                                             kages in 4.608s
====================================
Redirecting to /bin/systemctl restart httpd.service
npm WARN npm npm does not support Node.js v10.24.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! Unexpected token =


npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-02T01_09_27_344Z-debug.log
npm WARN npm npm does not support Node.js v10.24.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! Unexpected token =


npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-02T01_09_27_765Z-debug.log

Alguien sabra la causa.​
 
Lo dice claramente en el error: La versión de NPM que está instalando no va con la versión de Node.

Lo recomendable sería modificar el código para que te instale una versión más actualizada de Node (según el mismo error, al menos la v12).

kj
 
Tengo un archivo de (.sh) que instala node, mongodb y otras consillas, pero me esta dando error al ejecutarlo.
hace algunos dias me funcionaba perfecto.


Insertar CODE, HTML o PHP:
npm WARN notsup Unsupported engine for npm@8.1.4: wanted: {"node":"^12.13.0 || ^                                                                                                                                                             14.15.0 || >=16"} (current: {"node":"10.24.1","npm":"6.14.12"})
npm WARN notsup Not compatible with your version of node/npm: npm@8.1.4


+ npm@8.1.4
added 73 packages from 18 contributors, removed 286 packages and updated 149 pac                                                                                                                                                             kages in 4.608s
====================================
Redirecting to /bin/systemctl restart httpd.service
npm WARN npm npm does not support Node.js v10.24.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! Unexpected token =


npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-02T01_09_27_344Z-debug.log
npm WARN npm npm does not support Node.js v10.24.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm You can find the latest version at https://nodejs.org/
npm ERR! Unexpected token =


npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2021-12-02T01_09_27_765Z-debug.log

Alguien sabra la causa.​

El mensaje es claro, hay una incompatibilidad de versiones, por ahí te conteste en Skype sobre el tema al mensaje previo
 

Temas similares

Edrien
Respuestas
5
Visitas
395
Carlos Frias
Carlos Frias
Atrás
Arriba