npm error Node.js v22.14.0 npm verbose cwd C:\Users\Administrator\AppData\Roaming\BrowserAutomationStudio\apps\28.5.0\e\cache.ykKp\distr\app npm verbose os Windows_NT 10.0.17763 npm verbose node v22.11.0 npm verbose npm v10.9.0 npm verbose exit 1 npm verbose code 1 npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache_logs\2025-03-18T19_14_32_997Z-debug-0.log [20:14:42.514] Failed to install npm modules [20:14:42.514] Autoclean current folder becuase of error C:/Users/Administrator/AppData/Roaming/BrowserAutomationStudio/apps/28.5.0/e/7832.ykKp [20:14:42.514] Autoclean current cache C:/Users/Administrator/AppData/Roaming/BrowserAutomationStudio/apps/28.5.0/e/cache.ykKp
Некорректная работа при установке npm модулей
-
Не могу заставить работать jimp в коде, при вызове nodejs, ошибка TypeScript: Jimp is not a function. Я так понимаю, это проблема с установкой npm модулей в BAS, как это исправить? NodeJS в настройках браузера включен, jimp импортировал в логах следующее
[17:02:01.697] Started success
[17:10:36.151] Stopped by user (begin)
[17:10:36.151] Stopped by user (end)
[17:10:36.192] Language version set to 18.10.0
[17:10:36.192] Added module jimp, *
[17:10:36.192] Added module sharp, *
[17:10:36.192] Added function 8gntpadivqf
[17:10:36.192] ------------------------------------------------------------------
[17:10:36.192] Starting Node.js 18.10.0
[17:10:36.192] Found installed distr D:/BrowserAutomationStudio/apps/27.9.1/87c7.rJur
[17:10:36.192] Calculating checksums for D:/BrowserAutomationStudio/apps/27.9.1/e/87c7.rJur/distr
[17:10:36.204] Checksum verified successfully
[17:10:36.204] Hash 87c7
[17:10:36.204] Deleting functions and files
[17:10:36.204] Removing directory D:/BrowserAutomationStudio/apps/27.9.1/e/87c7.rJur/distr/app/lib/custom
[17:10:36.205] Installing functions and files
[17:10:36.205] Installing function D:/BrowserAutomationStudio/apps/27.9.1/e/87c7.rJur/distr/app/lib/custom/8gntpadivqf.js
[17:10:36.206] Starting pipes server \.\pipe\basembeddedpipes18.10.020308
[17:10:36.206] Starting process D:/BrowserAutomationStudio/apps/27.9.1/e/87c7.rJur/distr/node.exe
[17:10:36.267] Autoclean
[17:10:36.267] Not modified D:/BrowserAutomationStudio/apps/27.9.1/e/349d.vu90 for 624 seconds
[17:10:36.267] Not modified D:/BrowserAutomationStudio/apps/27.9.1/e/87c7.rJur for 0 seconds
[17:10:36.267] Autoclean current cache D:/BrowserAutomationStudio/apps/27.9.1/e/cache.rJur
[17:10:36.268] Started success -
const { Jimp } = require("jimp");