"Поиск файлов" -> случайная строка -> читать файл из случайной строки
При попытке запустить один из скриптов вылетает ошибка Node.js
-
Раньше этот скрипт запускал успешно, а тут ни с того ни с сего ошибка.
В скрипте который не запускается версия ноды 12.18.3. Текст ошибки: "Произошла ошибка. Смотрите лог для более подробной информации."

Сама ошибка выскакивает при запуске скрипта на этапе установки npm модуля, после его скачивания.
Текст лога:[22:06:34.406] Language version set to 12.18.3 [22:06:34.407] Added module crypto, * [22:06:34.407] Added module https, * [22:06:34.407] Added module querystring, * [22:06:34.407] Added function mxe5rme75kh [22:06:34.407] Added function souasqeqvba [22:06:34.408] Added function w0zlvf6nno [22:06:34.408] Added function 3ov393htzzw [22:06:34.408] Added function phgcgtod54h [22:06:34.408] Added function xvgfn04ozyj [22:06:34.408] Added function 8muev51onty [22:06:34.408] Added function zgisrmp6f2m [22:06:34.408] Added function hg1hknl2ugl [22:06:34.408] Added function xww5paoav0c [22:06:34.408] Added function oiwvt23zgys [22:06:34.409] Added function zwikfjvlkos [22:06:34.409] Added function cpqhhsckiim [22:06:34.409] Added function 7ip0smvy72 [22:06:34.409] Added function nlaewwt2l0j [22:06:34.409] ------------------------------------------------------------------ [22:06:34.409] Starting Node.js 12.18.3 [22:06:34.409] Installed distr not found [22:06:34.409] Hash a347 [22:06:34.410] Suffix todi [22:06:34.410] Getting url http://bablosoft.com/distr/Embedded/Node/12.18.3/distr.x64.zip [22:07:33.49] Writting to C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.node.12.18.3.zip [22:07:33.71] Extracting to folder C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi [22:07:35.956] package.json file content { "dependencies": { "crypto": "*", "https": "*", "querystring": "*" } } [22:07:35.956] npm install with C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/node.exe [22:07:37.873] Npm install log standart added 3 packages from 2 contributors in 0.67s [22:07:37.874] Npm install log error npm info it worked if it ends with ok npm verb cli [ npm verb cli 'C:\\Program Files\\BrowserAutomationStudio\\apps\\23.2.2\\e\\cache.todi\\distr\\node.exe', npm verb cli 'C:\\Program Files\\BrowserAutomationStudio\\apps\\23.2.2\\e\\cache.todi\\distr\\node_modules\\npm\\bin\\npm-cli.js', npm verb cli 'install', npm verb cli '--loglevel', npm verb cli 'verbose' npm verb cli ] npm info using npm@6.14.6 npm info using node@v12.18.3 npm verb npm-session d808b0f56164966b npm info lifecycle @~preinstall: @ npm timing stage:loadCurrentTree Completed in 9ms npm timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms npm timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms npm http fetch GET 304 https://registry.npmjs.org/crypto 464ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/querystring 463ms (from cache) npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in. npm http fetch GET 304 https://registry.npmjs.org/https 486ms (from cache) npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 516ms npm timing stage:loadIdealTree Completed in 521ms npm timing stage:generateActionsToTake Completed in 4ms npm verb correctMkdir C:\Users\admin\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing npm verb makeCacheDir UID & GID are irrelevant on win32 npm verb lock using C:\Users\admin\AppData\Roaming\npm-cache\_locks\staging-5a8ad8c829fd3e20.lock for C:\Program Files\BrowserAutomationStudio\apps\23.2.2\e\cache.todi\distr\node_modules\.staging npm timing action:extract Completed in 31ms npm timing action:finalize Completed in 33ms npm timing action:refresh-package-json Completed in 26ms npm info lifecycle crypto@1.0.1~preinstall: crypto@1.0.1 npm info lifecycle https@1.0.0~preinstall: https@1.0.0 npm info lifecycle querystring@0.2.1~preinstall: querystring@0.2.1 npm timing action:preinstall Completed in 1ms npm info linkStuff crypto@1.0.1 npm info linkStuff https@1.0.0 npm info linkStuff querystring@0.2.1 npm timing action:build Completed in 3ms npm info lifecycle crypto@1.0.1~install: crypto@1.0.1 npm info lifecycle https@1.0.0~install: https@1.0.0 npm info lifecycle querystring@0.2.1~install: querystring@0.2.1 npm timing action:install Completed in 2ms npm info lifecycle crypto@1.0.1~postinstall: crypto@1.0.1 npm info lifecycle https@1.0.0~postinstall: https@1.0.0 npm info lifecycle querystring@0.2.1~postinstall: querystring@0.2.1 npm timing action:postinstall Completed in 1ms npm verb unlock done using C:\Users\admin\AppData\Roaming\npm-cache\_locks\staging-5a8ad8c829fd3e20.lock for C:\Program Files\BrowserAutomationStudio\apps\23.2.2\e\cache.todi\distr\node_modules\.staging npm timing stage:executeActions Completed in 111ms npm timing stage:rollbackFailedOptional Completed in 0ms npm info linkStuff !invalid#1 npm info lifecycle undefined~install: undefined npm info lifecycle undefined~postinstall: undefined npm info lifecycle undefined~prepublish: undefined npm info lifecycle undefined~prepare: undefined npm timing stage:runTopLevelLifecycles Completed in 668ms npm verb exit [ 0, true ] npm timing npm Completed in 1404ms npm info ok [22:07:37.874] Deleting functions and files [22:07:37.875] Removing directory C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom [22:07:37.877] Installing functions and files [22:07:37.877] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/3ov393htzzw.js [22:07:37.877] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/cpqhhsckiim.js [22:07:37.878] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/hg1hknl2ugl.js [22:07:37.879] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/xvgfn04ozyj.js [22:07:37.879] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/xww5paoav0c.js [22:07:37.880] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/7ip0smvy72.js [22:07:37.880] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/phgcgtod54h.js [22:07:37.881] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/zgisrmp6f2m.js [22:07:37.881] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/w0zlvf6nno.js [22:07:37.882] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/souasqeqvba.js [22:07:37.883] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/8muev51onty.js [22:07:37.884] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/zwikfjvlkos.js [22:07:37.884] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/mxe5rme75kh.js [22:07:37.885] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/oiwvt23zgys.js [22:07:37.886] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi/distr/lib/custom/nlaewwt2l0j.js [22:07:37.886] Renaming directory C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi -> C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/a347.todi [22:07:37.887] Failed to move folder [22:07:37.888] Autoclean current folder becuase of error C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/a347.todi [22:07:37.888] Autoclean distr becuase of error e/cache.node.12.18.3.zip [22:07:37.888] Autoclean current cache C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi [22:07:38.557] Language version set to 12.18.3 [22:07:38.557] Added module crypto, * [22:07:38.557] Added module https, * [22:07:38.557] Added module querystring, * [22:07:38.558] Added function mxe5rme75kh [22:07:38.558] Added function souasqeqvba [22:07:38.558] Added function w0zlvf6nno [22:07:38.558] Added function 3ov393htzzw [22:07:38.558] Added function phgcgtod54h [22:07:38.558] Added function xvgfn04ozyj [22:07:38.558] Added function 8muev51onty [22:07:38.559] Added function zgisrmp6f2m [22:07:38.559] Added function hg1hknl2ugl [22:07:38.559] Added function xww5paoav0c [22:07:38.559] Added function oiwvt23zgys [22:07:38.559] Added function zwikfjvlkos [22:07:38.559] Added function cpqhhsckiim [22:07:38.559] Added function 7ip0smvy72 [22:07:38.559] Added function nlaewwt2l0j [22:07:38.560] ------------------------------------------------------------------ [22:07:38.560] Starting Node.js 12.18.3 [22:07:38.560] Installed distr not found [22:07:38.560] Hash a347 [22:07:38.560] Suffix Q5Np [22:07:38.560] Getting url http://bablosoft.com/distr/Embedded/Node/12.18.3/distr.x64.zip [22:08:37.580] Writting to C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.node.12.18.3.zip [22:08:37.600] Extracting to folder C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np [22:08:40.458] package.json file content { "dependencies": { "crypto": "*", "https": "*", "querystring": "*" } } [22:08:40.458] npm install with C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/node.exe [22:08:42.461] Npm install log standart added 3 packages from 2 contributors in 0.656s [22:08:42.461] Npm install log error npm info it worked if it ends with ok npm verb cli [ npm verb cli 'C:\\Program Files\\BrowserAutomationStudio\\apps\\23.2.2\\e\\cache.Q5Np\\distr\\node.exe', npm verb cli 'C:\\Program Files\\BrowserAutomationStudio\\apps\\23.2.2\\e\\cache.Q5Np\\distr\\node_modules\\npm\\bin\\npm-cli.js', npm verb cli 'install', npm verb cli '--loglevel', npm verb cli 'verbose' npm verb cli ] npm info using npm@6.14.6 npm info using node@v12.18.3 npm verb npm-session c93d070f01a664fa npm info lifecycle @~preinstall: @ npm timing stage:loadCurrentTree Completed in 10ms npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms npm timing stage:loadIdealTree:loadShrinkwrap Completed in 2ms npm http fetch GET 304 https://registry.npmjs.org/https 446ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/crypto 454ms (from cache) npm http fetch GET 304 https://registry.npmjs.org/querystring 453ms (from cache) npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in. npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 491ms npm timing stage:loadIdealTree Completed in 496ms npm timing stage:generateActionsToTake Completed in 9ms npm verb correctMkdir C:\Users\admin\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing npm verb makeCacheDir UID & GID are irrelevant on win32 npm verb lock using C:\Users\admin\AppData\Roaming\npm-cache\_locks\staging-4c034a66e54a2b66.lock for C:\Program Files\BrowserAutomationStudio\apps\23.2.2\e\cache.Q5Np\distr\node_modules\.staging npm timing action:extract Completed in 47ms npm timing action:finalize Completed in 30ms npm timing action:refresh-package-json Completed in 21ms npm info lifecycle crypto@1.0.1~preinstall: crypto@1.0.1 npm info lifecycle https@1.0.0~preinstall: https@1.0.0 npm info lifecycle querystring@0.2.1~preinstall: querystring@0.2.1 npm timing action:preinstall Completed in 1ms npm info linkStuff crypto@1.0.1 npm info linkStuff https@1.0.0 npm info linkStuff querystring@0.2.1 npm timing action:build Completed in 2ms npm info lifecycle crypto@1.0.1~install: crypto@1.0.1 npm info lifecycle https@1.0.0~install: https@1.0.0 npm info lifecycle querystring@0.2.1~install: querystring@0.2.1 npm timing action:install Completed in 1ms npm info lifecycle crypto@1.0.1~postinstall: crypto@1.0.1 npm info lifecycle https@1.0.0~postinstall: https@1.0.0 npm info lifecycle querystring@0.2.1~postinstall: querystring@0.2.1 npm timing action:postinstall Completed in 1ms npm verb unlock done using C:\Users\admin\AppData\Roaming\npm-cache\_locks\staging-4c034a66e54a2b66.lock for C:\Program Files\BrowserAutomationStudio\apps\23.2.2\e\cache.Q5Np\distr\node_modules\.staging npm timing stage:executeActions Completed in 116ms npm timing stage:rollbackFailedOptional Completed in 0ms npm info linkStuff !invalid#1 npm info lifecycle undefined~install: undefined npm info lifecycle undefined~postinstall: undefined npm info lifecycle undefined~prepublish: undefined npm info lifecycle undefined~prepare: undefined npm timing stage:runTopLevelLifecycles Completed in 654ms npm verb exit [ 0, true ] npm timing npm Completed in 1497ms npm info ok [22:08:42.462] Deleting functions and files [22:08:42.462] Removing directory C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom [22:08:42.463] Installing functions and files [22:08:42.464] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/3ov393htzzw.js [22:08:42.464] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/cpqhhsckiim.js [22:08:42.465] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/hg1hknl2ugl.js [22:08:42.465] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/xvgfn04ozyj.js [22:08:42.466] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/xww5paoav0c.js [22:08:42.466] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/7ip0smvy72.js [22:08:42.467] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/phgcgtod54h.js [22:08:42.467] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/zgisrmp6f2m.js [22:08:42.468] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/w0zlvf6nno.js [22:08:42.468] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/souasqeqvba.js [22:08:42.469] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/8muev51onty.js [22:08:42.469] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/zwikfjvlkos.js [22:08:42.470] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/mxe5rme75kh.js [22:08:42.471] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/oiwvt23zgys.js [22:08:42.471] Installing function C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np/distr/lib/custom/nlaewwt2l0j.js [22:08:42.472] Renaming directory C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np -> C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/a347.Q5Np [22:08:42.472] Failed to move folder [22:08:42.473] Autoclean [22:08:42.473] Not modified C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/6a35.JRos for 592 seconds [22:08:42.474] Not modified C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.6zKN for 551 seconds [22:08:42.474] Autoclean C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.6zKN [22:08:42.474] Not modified C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.F8MC for 296 seconds [22:08:42.474] Not modified C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.HIwH for 465 seconds [22:08:42.474] Autoclean C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.HIwH [22:08:42.474] Not modified C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5Np for 4 seconds [22:08:42.474] Not modified C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.todi for 69 seconds [22:08:42.475] Not modified C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.xRrG for 362 seconds [22:08:42.475] Autoclean C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.xRrG [22:08:42.475] Autoclean current folder becuase of error C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/a347.Q5Np [22:08:42.475] Autoclean distr becuase of error e/cache.node.12.18.3.zip [22:08:42.475] Autoclean current cache C:/Program Files/BrowserAutomationStudio/apps/23.2.2/e/cache.Q5NpЕсли пытаюсь запустить другой скрипт, то он запускается успешно.
Есть версии в чем причина и как победить?
Верися бас 23.2.2
Win 7
Если -
@botovod Скорее всего из за этого:
npm WARN deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.ПРЕДУПРЕЖДЕНИЕ устарело crypto@1.0.1: Этот пакет больше не поддерживается. Теперь это встроенный модуль Node. Если вы зависели от криптографии, вам следует переключиться на встроенную.
-
@sir-ydroidrrr said in При попытке запустить один из скриптов вылетает ошибка Node.js:
Если вы зависели от криптографии, вам следует переключиться на встроенную.
Чтобы переключиться на встроенную достаточно ли в настройках скрипта отключить сторонний модуль "crypto" (сразу отвечу что отключение этого модуля все равно вызывает ошибку на этапе запуска скрипта)?
Или тут дело в том, что бас анализирует код в блоках Node.js моего скрипта прежде чем скачать модуль Node? Если так, то мне достаточно поправить код во всех блоках Node.js чтобы исключить ошибку? -
@botovod said in При попытке запустить один из скриптов вылетает ошибка Node.js:
[22:08:42.472] Failed to move folder
Вот ошибка, используйте последнюю версию BAS там эта ошибка пофикшена
-
@botovod said in При попытке запустить один из скриптов вылетает ошибка Node.js:
[22:08:42.472] Failed to move folder
Вот ошибка, используйте последнюю версию BAS там эта ошибка пофикшена
Похоже пробема именно в БАСе. Сейчас попробовал запустить тот скрипт, что не запускался на другом компе с той же версией БАС и он успешно запустился без ошибок. Скорее всего это даже не зависит от версии БАС.
-
@botovod said in При попытке запустить один из скриптов вылетает ошибка Node.js:
Похоже пробема именно в БАСе. Сейчас попробовал запустить тот скрипт, что не запускался на другом компе с той же версией БАС и он успешно запустился без ошибок. Скорее всего это даже не зависит от версии БАС.
Вам же написали, что это исправили! Эта ошибка была и она действительно проявлялась лишь на некоторых ПК