Failed to start module.js



  • Уже не сколько раз при запуске разных скриптов появляется ошибка
    "Произошла ошибка. Cмотрите лог для более детальной информации"
    После этой ошибки более ни один мой скрипт не запускается, так как у меня все скрипты тесно интегрированы с базой данной mysql а к ней запросы делаются только через nodejs и модуль mysql2
    При том что запускаю на другом компе этот же скрипт без ошибок
    Иногда бывает что после этого можно закрыть BAS и скрипт запуститься а иногда лечится только полной переустановкой BAS

    [13:44:52.456] Language version set to 8.6.0
    [13:44:52.457] Added module mysql2, *
    [13:44:52.457] Added function z4suc3hbh2
    [13:44:52.457] Added function ns6vxzhg40b
    [13:44:52.457] Added function 8gehwmbs4rg
    [13:44:52.457] Added function ap6h77dow0i
    [13:44:52.457] Added function rrcdg3kajl
    [13:44:52.457] Added function mp4r5loo5xe
    [13:44:52.457] Added function 04haj9xdmj5a
    [13:44:52.457] Added function tyx5l86qj3
    [13:44:52.457] Added function x6vg92il77
    [13:44:52.457] Added function 59zw2vzu2kq
    [13:44:52.458] Added function aewhl0gvan9
    [13:44:52.458] Added function slae0ttzzr
    [13:44:52.458] Added function drbrhsssmu8
    [13:44:52.458] Added function 1u8v94gkaps
    [13:44:52.458] Added function zwebxkxo0o
    [13:44:52.458] Added function s7dzah5suyl
    [13:44:52.458] Added function 6p60qivlb0n
    [13:44:52.458] Added function qq6r07ynwwi
    [13:44:52.458] Added function 8xx4vum9u2s
    [13:44:52.458] Added function cjpw3wnjggv
    [13:44:52.458] Added function fmj1rrarkc9
    [13:44:52.458] Added function 29ehkhsidyc
    [13:44:52.458] Added function b6xfsh9s5xk
    [13:44:52.458] Added function b7jmnp2fodr
    [13:44:52.458] Added function klojt3tpk7j
    [13:44:52.459] Added function hc5dfdw54cd
    [13:44:52.459] Added function mc0ixwmwng
    [13:44:52.459] Added function lzf6twhd1
    [13:44:52.459] Added function 2nuryozy35c
    [13:44:52.459] Added function vlvfgd8blv
    [13:44:52.459] Added function 71qmhjn1ww2
    [13:44:52.459] Added function p3rsw9aggzn
    [13:44:52.459] Added function 9zqelvb5xhd
    [13:44:52.459] ------------------------------------------------------------------
    [13:44:52.459] Starting Node.js 8.6.0
    [13:44:52.460] Found installed distr C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/7f4e.m65Z
    [13:44:52.460] Hash 7f4e
    [13:44:52.460] Deleting functions and files
    [13:44:52.460] Removing directory C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom
    [13:44:52.463] Installing functions and files
    [13:44:52.463] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/cjpw3wnjggv.js
    [13:44:52.463] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/x6vg92il77.js
    [13:44:52.463] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/rrcdg3kajl.js
    [13:44:52.464] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/klojt3tpk7j.js
    [13:44:52.464] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/2nuryozy35c.js
    [13:44:52.465] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/aewhl0gvan9.js
    [13:44:52.465] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/ap6h77dow0i.js
    [13:44:52.465] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/fmj1rrarkc9.js
    [13:44:52.465] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/b6xfsh9s5xk.js
    [13:44:52.466] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/59zw2vzu2kq.js
    [13:44:52.466] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/z4suc3hbh2.js
    [13:44:52.466] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/8xx4vum9u2s.js
    [13:44:52.467] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/mc0ixwmwng.js
    [13:44:52.467] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/s7dzah5suyl.js
    [13:44:52.467] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/04haj9xdmj5a.js
    [13:44:52.467] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/hc5dfdw54cd.js
    [13:44:52.468] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/tyx5l86qj3.js
    [13:44:52.468] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/slae0ttzzr.js
    [13:44:52.468] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/drbrhsssmu8.js
    [13:44:52.469] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/6p60qivlb0n.js
    [13:44:52.469] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/vlvfgd8blv.js
    [13:44:52.469] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/zwebxkxo0o.js
    [13:44:52.470] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/qq6r07ynwwi.js
    [13:44:52.470] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/ns6vxzhg40b.js
    [13:44:52.470] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/mp4r5loo5xe.js
    [13:44:52.470] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/9zqelvb5xhd.js
    [13:44:52.471] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/lzf6twhd1.js
    [13:44:52.471] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/71qmhjn1ww2.js
    [13:44:52.471] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/p3rsw9aggzn.js
    [13:44:52.472] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/1u8v94gkaps.js
    [13:44:52.472] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/b7jmnp2fodr.js
    [13:44:52.472] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/8gehwmbs4rg.js
    [13:44:52.472] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/lib/custom/29ehkhsidyc.js
    [13:44:52.473] Starting pipes server \\.\pipe\basembeddedpipes101000
    [13:44:52.473] Starting process C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.m65Z/distr/node.exe
    [13:44:52.752] ProcessFinished
    [13:44:52.752] Failed to start module.js:473
          throw err;
          ^
    
    Error: Cannot find module 'C:\Users\user\AppData\Roaming\BrowserAutomationStudio\apps\23.2.2\e\7f4e.m65Z\distr\lib\main.js'
        at Function.Module._resolveFilename (module.js:527:15)
        at Function.Module._load (module.js:453:25)
        at Function.Module.runMain (module.js:665:10)
        at startup (bootstrap_node.js:187:16)
        at bootstrap_node.js:607:3
    
    [13:44:54.597] Stopped by user (begin)
    [13:44:54.597] Stopped by user (end)
    

    Посмотрел по указанному пути
    C:\Users\user\AppData\Roaming\BrowserAutomationStudio\apps\23.2.2\e\7f4e.m65Z\distr\lib
    файла main.js нет там вообще пустая папка,
    возможно это случилось потому что я нажал остановить скрипт мгновенно.

    Те скрипты что уже была запущены ранее продолжают работать, пока я их не остановлю.



  • Продолжаются ошибки при запуске скриптов
    Возможно как одна из причин может быть то что процессор во время запуска был очень сильно загружен,
    после появления ошибки запуск любого другого скрипта приводит к той же ошибки

    [10:26:46.675] Starting Node.js 8.6.0
    [10:26:46.676] Found installed distr C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/7f4e.ZHGu
    [10:26:46.676] Hash 7f4e
    [10:26:46.676] Deleting functions and files
    [10:26:46.676] Removing directory C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom
    [10:26:46.676] Installing functions and files
    [10:26:46.676] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/b7jmnp2fodr.js
    [10:26:46.677] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/klojt3tpk7j.js
    [10:26:46.677] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/drbrhsssmu8.js
    [10:26:46.677] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/aewhl0gvan9.js
    [10:26:46.678] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/vy0h2067b0y.js
    [10:26:46.678] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/vfrrs3wmuu.js
    [10:26:46.678] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/qq6r07ynwwi.js
    [10:26:46.679] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/slae0ttzzr.js
    [10:26:46.679] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/wp1cqhzikxh.js
    [10:26:46.679] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/8xx4vum9u2s.js
    [10:26:46.679] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/dmmfnbsjxpb.js
    [10:26:46.680] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/ap6h77dow0i.js
    [10:26:46.680] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/zwebxkxo0o.js
    [10:26:46.680] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/rrcdg3kajl.js
    [10:26:46.681] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/z4suc3hbh2.js
    [10:26:46.681] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/5siy22ihajp.js
    [10:26:46.681] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/kpba4mtyazq.js
    [10:26:46.682] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/fmj1rrarkc9.js
    [10:26:46.682] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/ncokvj0o7fb.js
    [10:26:46.683] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/cjpw3wnjggv.js
    [10:26:46.683] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/tyx5l86qj3.js
    [10:26:46.684] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/1u8v94gkaps.js
    [10:26:46.684] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/6p60qivlb0n.js
    [10:26:46.684] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/mp4r5loo5xe.js
    [10:26:46.685] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/04haj9xdmj5a.js
    [10:26:46.685] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/bsyf3no2m4.js
    [10:26:46.685] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/ypv0gjjza3i.js
    [10:26:46.686] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/st504y5hbv.js
    [10:26:46.686] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/pgrxh9fq6ao.js
    [10:26:46.686] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/8gehwmbs4rg.js
    [10:26:46.687] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/x6vg92il77.js
    [10:26:46.687] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/vlvfgd8blv.js
    [10:26:46.687] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/xd7p33zvxul.js
    [10:26:46.688] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/29ehkhsidyc.js
    [10:26:46.688] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/cvw5qvsv964.js
    [10:26:46.688] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/17kjkb78g9x.js
    [10:26:46.689] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/jeugfutzo95.js
    [10:26:46.689] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/na4uy80ej2k.js
    [10:26:46.690] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/43kblzzptpi.js
    [10:26:46.690] Installing function C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/lib/custom/ns6vxzhg40b.js
    [10:26:46.691] Starting pipes server \\.\pipe\basembeddedpipes70060
    [10:26:46.691] Starting process C:/Users/user/AppData/Roaming/BrowserAutomationStudio/apps/23.2.2/e/7f4e.ZHGu/distr/node.exe
    [10:26:47.228] ProcessFinished
    [10:26:47.229] Failed to start module.js:473
          throw err;
          ^
    
    Error: Cannot find module 'C:\Users\user\AppData\Roaming\BrowserAutomationStudio\apps\23.2.2\e\7f4e.ZHGu\distr\lib\main.js'
        at Function.Module._resolveFilename (module.js:527:15)
        at Function.Module._load (module.js:453:25)
        at Function.Module.runMain (module.js:665:10)
        at startup (bootstrap_node.js:187:16)
        at bootstrap_node.js:607:3
    
    [10:26:55.779] Stopped by user (begin)
    [10:26:55.780] Stopped by user (end)
    


  • @gomeapat а почему на новую версию Node.js не перешли?



  • Да надо но руки ни как не доходят

    Вылеты бывают я заметил когда проц близ в загрузке к 100% и я жму остановить мгновенно, поэтому стараюсь жать каждый поток и тогда ошибок таких нет.


Log in to reply