@Roy-Mustang Вы были правы. У меня действительно были эмодзи в скрипте Node.js. После их удаления я смог нормально загрузить его на сервер. Большое спасибо!
@Fox Btw, for what exactly is the "Cache mask allow" step in a script needed?
Cache in BAS is roughly speaking a virtual copy of the physical profile data, to work with it and need the actions "Cache Mask Allow" and "Cache Mask Deny". In order to add or not to add data to the virtual copy of the physical profile cache data.