CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

Jean DEV, besoin de vous ! ( NODE JS )

Coucouent64
Coucouent64
Niveau 6
02 mai 2022 à 17:35:34

https://image.noelshack.com/fichiers/2022/18/1/1651505547-image-2022-05-02-173226978.png
https://image.noelshack.com/fichiers/2022/18/1/1651505650-image-2022-05-02-173409672.png

Je découvre Node JS https://image.noelshack.com/fichiers/2018/26/7/1530476579-reupjesus.png
et je ne comprends pas pourquoi, console.log () , ne veut pas me renvoyer mon message ! https://image.noelshack.com/fichiers/2018/10/1/1520256134-risitasue2.png

Si quelqu'un à la soluce, je suis preneur https://image.noelshack.com/fichiers/2017/39/3/1506524542-ruth-perplexev2.png

Pseudo supprimé
Pseudo supprimé 02 mai 2022 à 17:35:50

https://image.noelshack.com/fichiers/2022/18/1/1651505632-image.png

Coucouent64
Coucouent64
Niveau 6
02 mai 2022 à 17:36:36

Le 02 mai 2022 à 17:35:50 :
https://image.noelshack.com/fichiers/2022/18/1/1651505632-image.png

https://image.noelshack.com/fichiers/2017/50/3/1513171187-ed93.png

HumainQuantique
HumainQuantique
Niveau 62
02 mai 2022 à 17:37:58

a vue de nez il te manque un .read()

HumainQuantique
HumainQuantique
Niveau 62
02 mai 2022 à 17:38:51

read.read();

Message édité le 02 mai 2022 à 17:39:45 par HumainQuantique
Coucouent64
Coucouent64
Niveau 6
02 mai 2022 à 17:43:58

Le 02 mai 2022 à 17:38:51 :
read.read();

https://image.noelshack.com/fichiers/2022/18/1/1651506054-read.png
https://image.noelshack.com/fichiers/2022/18/1/1651506063-image-2022-05-02-174102801.png

Je vais essayer, mais pour l'instant, avec read.on ( end) il me renvoie le console log.

Si je fais un read.read() , je mets les même paramètres ? ( data et chunk ) https://image.noelshack.com/fichiers/2017/22/1496583962-risisingecigarette.png

HumainQuantique
HumainQuantique
Niveau 62
02 mai 2022 à 17:58:47

le read() c'est pour lancer manuellement la lecture du stream en fait, donc la tu ne devrais aps en avoir besoin

tente un
read.on('error', (error) => {
console.log(`An error occured while writing to the file. Error: ${error.message}`);
});

Sous forums
  • Religion
La vidéo du moment