embetacloud
embetacloud copied to clipboard
any help on this
:~/dark/embetacloud$ npm start
[email protected] prestart /home/ubuntu/dark/embetacloud npm run build
[email protected] build /home/ubuntu/dark/embetacloud tsc
server/Storages/GDrive/GDrive.ts:1:16 - error TS2304: Cannot find name 'require'.
1 const google = require('googleapis'); ~~~~~~~
server/Storages/GDrive/GDrive.ts:2:15 - error TS2304: Cannot find name 'require'.
2 const debug = require('debug')('eMCloud::GDrive'); ~~~~~~~
server/Storages/GDrive/GDrive.ts:3:23 - error TS2307: Cannot find module 'fs'.
3 import * as FILE from 'fs'; ~~~~
server/Storages/GDrive/GDrive.ts:5:23 - error TS2307: Cannot find module 'path'.
5 import * as path from 'path'; ~~~~~~
server/Storages/GDrive/GDrive.ts:6:30 - error TS2307: Cannot find module 'events'.
6 import { EventEmitter } from 'events'; ~~~~~~~~
server/Storages/GDrive/GDrive.ts:8:19 - error TS2304: Cannot find name 'process'.
8 const CLIENT_ID = process.env.GOOGLE_CLIENT_ID; ~~~~~~~
server/Storages/GDrive/GDrive.ts:9:23 - error TS2304: Cannot find name 'process'.
9 const CLIENT_SECRET = process.env.GOOGLE_CLIENT_SECRET; ~~~~~~~
server/Storages/GDrive/GDrive.ts:10:22 - error TS2304: Cannot find name 'process'.
10 const REDIRECT_URL = process.env.GOOGLE_REDIRECT_URL; ~~~~~~~
server/Storages/GDrive/GDrive.ts:60:14 - error TS2339: Property 'emit' does not exist on type 'GDrive'.
60 this.emit('progress', { ~~~~
server/Storages/GDrive/GDrive.ts:84:18 - error TS2339: Property 'emit' does not exist on type 'GDrive'.
84 this.emit("fileUploaded", { ~~~~
server/Storages/GDrive/GDrive.ts:93:18 - error TS2339: Property 'emit' does not exist on type 'GDrive'.
93 this.emit("progress", { ~~~~
server/Storages/GDrive/GDrive.ts:118:14 - error TS2339: Property 'emit' does not exist on type 'GDrive'.
118 this.emit('mkdir', { ~~~~
server/Storages/GDrive/GDrive.ts:169:30 - error TS2339: Property 'emit' does not exist on type 'GDrive'.
169 this.emit("addSize", { ~~~~
server/Storages/Mega/Mega.ts:1:14 - error TS2304: Cannot find name 'require'.
1 const mega = require("mega"); ~~~~~~~
server/Storages/Mega/Mega.ts:2:14 - error TS2304: Cannot find name 'require'.
2 const FILE = require("fs-extra"); ~~~~~~~
server/Storages/Mega/Mega.ts:3:14 - error TS2304: Cannot find name 'require'.
3 const path = require("path"); ~~~~~~~
server/Storages/Mega/Mega.ts:4:14 - error TS2304: Cannot find name 'require'.
4 const mime = require("mime"); ~~~~~~~
server/Storages/Mega/Mega.ts:5:15 - error TS2304: Cannot find name 'require'.
5 const debug = require("debug")("eMCloud::Mega"); ~~~~~~~
server/Storages/Mega/Mega.ts:7:30 - error TS2307: Cannot find module 'events'.
7 import { EventEmitter } from 'events'; ~~~~~~~~
server/Storages/Mega/Mega.ts:46:22 - error TS2339: Property 'emit' does not exist on type 'Mega'.
46 self.emit("fileUploaded", { ~~~~
server/Storages/Mega/Mega.ts:62:26 - error TS2339: Property 'emit' does not exist on type 'Mega'.
62 self.emit("fileUploaded", { ~~~~
server/Storages/Mega/Mega.ts:73:18 - error TS2339: Property 'emit' does not exist on type 'Mega'.
73 self.emit("progress", { ~~~~
server/Storages/Mega/Mega.ts:80:18 - error TS2339: Property 'emit' does not exist on type 'Mega'.
80 self.emit("fileUploaded", { ~~~~
server/Storages/Mega/Mega.ts:95:22 - error TS2339: Property 'emit' does not exist on type 'Mega'.
95 self.emit("fileUploaded", { ~~~~
server/Storages/Mega/Mega.ts:129:30 - error TS2339: Property 'emit' does not exist on type 'Mega'.
129 this.emit("addSize", { ~~~~
server/Torrent/Torrent.ts:2:23 - error TS2307: Cannot find module 'path'.
2 import * as path from 'path'; ~~~~~~
server/Torrent/Torrent.ts:3:30 - error TS2307: Cannot find module 'events'.
3 import { EventEmitter } from 'events'; ~~~~~~~~
server/Torrent/Torrent.ts:4:17 - error TS2304: Cannot find name 'require'.
4 const shortid = require("shortid"); ~~~~~~~
server/Torrent/Torrent.ts:5:15 - error TS2304: Cannot find name 'require'.
5 const debug = require("debug")("eMCloud::TorrentEngine"); ~~~~~~~
server/Torrent/Torrent.ts:42:18 - error TS2339: Property 'emit' does not exist on type 'Torrent'.
42 this.emit("info", this.engine.torrent); ~~~~
server/Torrent/Torrent.ts:48:22 - error TS2339: Property 'emit' does not exist on type 'Torrent'.
48 this.emit("progress", { ~~~~
server/Torrent/Torrent.ts:54:26 - error TS2339: Property 'emit' does not exist on type 'Torrent'.
54 this.emit("progress", { ~~~~
server/Torrent/Torrent.ts:65:18 - error TS2339: Property 'emit' does not exist on type 'Torrent'.
65 this.emit("downloaded", savedFolderPath); ~~~~
npm ERR! Linux 4.15.0-1044-aws
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script 'tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the upload-to-gdrive package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs upload-to-gdrive
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls upload-to-gdrive
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/dark/embetacloud/npm-debug.log
npm ERR! Linux 4.15.0-1044-aws
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] prestart: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prestart script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the upload-to-gdrive package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs upload-to-gdrive
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls upload-to-gdrive
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/dark/embetacloud/npm-debug.log