Erro arquivo .sh bash

  • Autor Autor Edrien
  • Data de início Data de início
Tradução em andamento: em alguns minutos este tópico estará em português. Por enquanto, o conteúdo está no original em espanhol. Ver original
Edrien

Edrien

Préstamo en curso
Lambda
Verificación en dos pasos activada
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.


Inserir CODE, HTML ou 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.​
 
Foi útil? Participe da conversa

Com sua conta grátis você pode responder, mandar mensagem privada ao autor e comprar com Saldo retido: o pagamento é liberado quando você recebe o combinado.

Leva 30 segundos · você volta a este tópico ao terminar
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.


Inserir CODE, HTML ou 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
 

Tópicos similares

Edrien
Respostas
5
Visitas
395
Carlos Frias
Carlos Frias
Voltar
Topo