MTProto / MTProtoProxy

Fast and Simple NodeJS MTProto Proxy(Telegram Proxy) with the support of PROMOTION CHANNELS
MIT License
26 stars 10 forks source link

Does not work #1

Closed ZarinNegah closed 5 years ago

ZarinNegah commented 5 years ago

Hello We tried to set up my friend and me But we did not succeed It is possible to put a complete setup video or complete the steps

MTProto commented 5 years ago

Could you please tell exactly what you have done and whether there were any errors or not? steps to create server:

npm install mtprotoproxy
node ./app.js

Remember that you have to write "app.js" yourself or use one of my sample codes as "app.js"

ZarinNegah commented 5 years ago

[root@CentOS7-4gb-nbg1-MTP ~]# npm install mtprotoproxy npm WARN saveError ENOENT: no such file or directory, open '/root/package.json' npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field.


[root@CentOS7-4gb-nbg1-MTP ~]# node ./app.js module.js:550 throw err; ^

Error: Cannot find module './mtprotoproxy' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object. (/root/app.js:3:24) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3)

MTProto commented 5 years ago

Sorry that was my mistake. I was reading module locally. I have corrected README file. Please check it. Please do not hesitate to ask me about the problems.

ZarinNegah commented 5 years ago

npm install mtprotoproxy npm WARN saveError ENOENT: no such file or directory, open '/root/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/root/package.json' npm WARN root No description npm WARN root No repository field. npm WARN root No README data npm WARN root No license field.


do not work dear

MTProto commented 5 years ago

Thats not a problem. This is a warning. Not important as you have not initialized npm. If you install any npm package without npm init you will get that warning.If that is important for you first enter npm init and fill the request. Then enter npm install mtprotoproxy

MTProto commented 5 years ago

Is there any problem remained?