out386 / aria-telegram-mirror-bot

A Telegram bot to download files via HTTP(S)/BitTorrent and upload them to Google Drive
MIT License
517 stars 401 forks source link

npm WARN mirror-bot@2.0.0 No repository field. #89

Closed Raymondo-C closed 4 years ago

Raymondo-C commented 4 years ago

Couldn't install module mirror-bot@2.0.0

https://registry.npmjs.org/mirror-bot@2.0.0 {"error":"Not found"} Screenshot 2020-03-13 at 11 29 26 PM

system: CentOS 7.7 x64 npm version: 6.13.4

[root@host19d4e9f1ef aria-telegram-mirror-bot]# npm install
npm WARN mirror-bot@2.0.0 No repository field.

added 273 packages from 318 contributors in 14.158s

18 packages are looking for funding
  run `npm fund` for details

[root@host19d4e9f1ef aria-telegram-mirror-bot]# npm start

> mirror-bot@2.0.0 start /root/aria-telegram-mirror-bot
> NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js

internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/root/aria-telegram-mirror-bot/out/index.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mirror-bot@2.0.0 start: `NTBA_FIX_319=1 node --max_old_space_size=128 ./out/index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the mirror-bot@2.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-03-13T15_23_01_268Z-debug.log
Screenshot 2020-03-13 at 11 26 28 PM
sorrymyself commented 4 years ago

the same to me

out386 commented 4 years ago

Yeah, I want the mirror-bot module too.

Read the readme, specifically the part of the installation section that tells you to run tsc.

out386 commented 4 years ago

Warnings aren't errors, and I'm lazy. That warning's fine. Ignore it.

sorrymyself commented 4 years ago

Ritayan Chakraborty notifications@github.com于2020年3月18日 周三09:45写道:

Warnings aren't errors, and I'm lazy. That warning's fine. Ignore it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/out386/aria-telegram-mirror-bot/issues/89#issuecomment-600382379, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALNKFJOGOACMIXDNKTHU3ALRIARVHANCNFSM4LHE4KNA .

I think there may be two possibilities First, there is insufficient memory for vps Second, insufficient memory will cause an error when tsc is executed, because under normal circumstances, nothing will happen when tsc is executed.

gotenksIN commented 4 years ago

t

I ran tsc. And afterward I ran npm install it was warning again.

root@localhost:~/aria-telegram-mirror-bot# tsc
root@localhost:~/aria-telegram-mirror-bot# npm install
npm WARN mirror-bot@2.0.0 No repository field.

audited 614 packages in 2.373s

13 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities`

now run the bot by npm start should be fine also make you have started aria daemon before I lost count of how many times I have forgotten to do that

out386 commented 4 years ago

@sorrymyself

I think there may be two possibilities First, there is insufficient memory for vps Second, insufficient memory will cause an error when tsc is executed, because under normal circumstances, nothing will happen when tsc is executed.

Yes, tsc does need over 1gb, else it fails. But that's not what he had. It's simply a missing field in package.json.