Giter Site home page Giter Site logo

NPX? about aria-telegram-mirror-bot HOT 10 CLOSED

mrpupil avatar mrpupil commented on August 19, 2024
NPX?

from aria-telegram-mirror-bot.

Comments (10)

out386 avatar out386 commented on August 19, 2024 1

@mrpupil, you deleted some fields from constants. Follow step 3 of the Installation section again, then read this: https://github.com/out386/aria-telegram-mirror-bot#constants-description
Do not delete anything you aren't using. Set any such fields to "false" or empty, depending on the type.

@begginer-123, that's not needed anymore.

from aria-telegram-mirror-bot.

out386 avatar out386 commented on August 19, 2024 1

not needed anymore , wow , so can we run it on low ram config ? like less than 1gb ram config.

Not needed as in npm start runs it. If you can't run the typescript compiler, you could just compile it on your local pc, then push ./out to the server.

from aria-telegram-mirror-bot.

out386 avatar out386 commented on August 19, 2024

That is not an error. If you're getting an error, it'll appear after that last "npx" line.

from aria-telegram-mirror-bot.

mrpupil avatar mrpupil commented on August 19, 2024

Found 9 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: npx typescript && NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from aria-telegram-mirror-bot.

out386 avatar out386 commented on August 19, 2024

The actual error is between your 1st and 2nd messages. Show the entire thing.

from aria-telegram-mirror-bot.

mrpupil avatar mrpupil commented on August 19, 2024

sorry i thought it wasn't important, the message is the same as in the compilation of .constants

[email protected] start /content/aria-telegram-mirror-bot
npx typescript && NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js

npx: installed 1 in 1.703s
src/bot_utils/event_regex.ts:14:19 - error TS2339: Property 'COMMANDS_USE_BOT_NAME' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

14 if (constants.COMMANDS_USE_BOT_NAME && constants.COMMANDS_USE_BOT_NAME.ENABLED) {
~~~~~~~~~~~~~~~~~~~~~

src/bot_utils/event_regex.ts:14:54 - error TS2339: Property 'COMMANDS_USE_BOT_NAME' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

14 if (constants.COMMANDS_USE_BOT_NAME && constants.COMMANDS_USE_BOT_NAME.ENABLED) {
~~~~~~~~~~~~~~~~~~~~~

src/bot_utils/event_regex.ts:20:45 - error TS2339: Property 'COMMANDS_USE_BOT_NAME' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

20 commands[i] = command + constants.COMMANDS_USE_BOT_NAME.NAME + commandAfter[i];
~~~~~~~~~~~~~~~~~~~~~

src/drive/drive-upload.ts:55:18 - error TS2339: Property 'IS_TEAM_DRIVE' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

55 if (!constants.IS_TEAM_DRIVE || (constants.IS_TEAM_DRIVE && !isFolder)) {
~~~~~~~~~~~~~

src/drive/drive-upload.ts:55:46 - error TS2339: Property 'IS_TEAM_DRIVE' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

55 if (!constants.IS_TEAM_DRIVE || (constants.IS_TEAM_DRIVE && !isFolder)) {
~~~~~~~~~~~~~

src/drive/drive-upload.ts:76:17 - error TS2339: Property 'DRIVE_FILE_PRIVATE' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

76 if (constants.DRIVE_FILE_PRIVATE && constants.DRIVE_FILE_PRIVATE.ENABLED) {
~~~~~~~~~~~~~~~~~~

src/drive/drive-upload.ts:76:49 - error TS2339: Property 'DRIVE_FILE_PRIVATE' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

76 if (constants.DRIVE_FILE_PRIVATE && constants.DRIVE_FILE_PRIVATE.ENABLED) {
~~~~~~~~~~~~~~~~~~

src/drive/drive-upload.ts:79:33 - error TS2339: Property 'DRIVE_FILE_PRIVATE' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

79 for (var email of constants.DRIVE_FILE_PRIVATE.EMAILS) {
~~~~~~~~~~~~~~~~~~

src/index.ts:577:19 - error TS2339: Property 'IS_TEAM_DRIVE' does not exist on type '{ readonly TOKEN: string; readonly ARIA_SECRET: string; readonly ARIA_DOWNLOAD_LOCATION: string; readonly ARIA_DOWNLOAD_LOCATION_ROOT: string; readonly ARIA_FILTERED_DOMAINS: any[]; ... 6 more ...; readonly DOWNLOAD_NOTIFY_TARGET: { ...; }; }'.

577 if (constants.IS_TEAM_DRIVE && isFolder) {
~~~~~~~~~~~~~

Found 9 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: npx typescript && NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

from aria-telegram-mirror-bot.

iamLiquidX avatar iamLiquidX commented on August 19, 2024

Did u run tsc command

from aria-telegram-mirror-bot.

iamLiquidX avatar iamLiquidX commented on August 19, 2024

not needed anymore , wow , so can we run it on low ram config ? like less than 1gb ram config.

from aria-telegram-mirror-bot.

iamLiquidX avatar iamLiquidX commented on August 19, 2024

not needed anymore , wow , so can we run it on low ram config ? like less than 1gb ram config.

Not needed as in npm start runs it. If you can't run the typescript compiler, you could just compile it on your local pc, then push ./out to the server.

thank you for the reply, that a really nice addition.

from aria-telegram-mirror-bot.

mrpupil avatar mrpupil commented on August 19, 2024

@out386 Thanks you for your support! Glad it helped @begginer-123 too 😄

from aria-telegram-mirror-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.