Hello,could someone please help me out?whenever I try to deploy the app to heroku I get the following error
NPM_CONFIG_LOGLEVEL=error
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
engines.node (package.json): 6.11.1
engines.npm (package.json): unspecified (use default)
Resolving node version 6.11.1...
Downloading and installing node 6.11.1...
Using default npm version: 3.10.10
Running build
> [email protected] build /tmp/build_002a12d3cef7597efcf0508f5a271550
> tsc
server/Storages/GDrive/GDrive.ts(1,16): error TS2304: Cannot find name 'require'.
server/Storages/GDrive/GDrive.ts(2,15): error TS2304: Cannot find name 'require'.
server/Storages/GDrive/GDrive.ts(3,23): error TS2307: Cannot find module 'fs'.
server/Storages/GDrive/GDrive.ts(5,23): error TS2307: Cannot find module 'path'.
server/Storages/GDrive/GDrive.ts(6,30): error TS2307: Cannot find module 'events'.
server/Storages/GDrive/GDrive.ts(8,19): error TS2304: Cannot find name 'process'.
server/Storages/GDrive/GDrive.ts(9,23): error TS2304: Cannot find name 'process'.
server/Storages/GDrive/GDrive.ts(10,22): error TS2304: Cannot find name 'process'.
server/Storages/GDrive/GDrive.ts(60,14): error TS2339: Property 'emit' does not exist on type 'GDrive'.
server/Storages/GDrive/GDrive.ts(84,18): error TS2339: Property 'emit' does not exist on type 'GDrive'.
server/Storages/GDrive/GDrive.ts(93,18): error TS2339: Property 'emit' does not exist on type 'GDrive'.
server/Storages/GDrive/GDrive.ts(118,14): error TS2339: Property 'emit' does not exist on type 'GDrive'.
server/Storages/GDrive/GDrive.ts(169,30): error TS2339: Property 'emit' does not exist on type 'GDrive'.
server/Storages/Mega/Mega.ts(1,14): error TS2304: Cannot find name 'require'.
server/Storages/Mega/Mega.ts(2,14): error TS2304: Cannot find name 'require'.
server/Storages/Mega/Mega.ts(3,14): error TS2304: Cannot find name 'require'.
server/Storages/Mega/Mega.ts(4,14): error TS2304: Cannot find name 'require'.
server/Storages/Mega/Mega.ts(5,15): error TS2304: Cannot find name 'require'.
server/Storages/Mega/Mega.ts(7,30): error TS2307: Cannot find module 'events'.
server/Storages/Mega/Mega.ts(46,22): error TS2339: Property 'emit' does not exist on type 'Mega'.
server/Storages/Mega/Mega.ts(62,26): error TS2339: Property 'emit' does not exist on type 'Mega'.
server/Storages/Mega/Mega.ts(73,18): error TS2339: Property 'emit' does not exist on type 'Mega'.
server/Storages/Mega/Mega.ts(80,18): error TS2339: Property 'emit' does not exist on type 'Mega'.
server/Storages/Mega/Mega.ts(95,22): error TS2339: Property 'emit' does not exist on type 'Mega'.
server/Storages/Mega/Mega.ts(129,30): error TS2339: Property 'emit' does not exist on type 'Mega'.
server/Torrent/Torrent.ts(2,23): error TS2307: Cannot find module 'path'.
server/Torrent/Torrent.ts(3,30): error TS2307: Cannot find module 'events'.
server/Torrent/Torrent.ts(4,17): error TS2304: Cannot find name 'require'.
server/Torrent/Torrent.ts(5,15): error TS2304: Cannot find name 'require'.
server/Torrent/Torrent.ts(42,18): error TS2339: Property 'emit' does not exist on type 'Torrent'.
server/Torrent/Torrent.ts(48,22): error TS2339: Property 'emit' does not exist on type 'Torrent'.
server/Torrent/Torrent.ts(54,26): error TS2339: Property 'emit' does not exist on type 'Torrent'.
server/Torrent/Torrent.ts(65,18): error TS2339: Property 'emit' does not exist on type 'Torrent'.
npm ERR! argv "/tmp/build_002a12d3cef7597efcf0508f5a271550/.heroku/node/bin/node" "/tmp/build_002a12d3cef7597efcf0508f5a271550/.heroku/node/bin/npm" "run" "build" "--if-present"
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! There is likely additional logging output above.
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- A module may be missing from 'dependencies' in package.json
https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies
Love,
Heroku
! Push rejected, failed to compile Node.js app.
Hello,could someone please help me out?whenever I try to deploy the app to heroku I get the following error
-----> Node.js app detected
-----> Creating runtime environment
-----> Installing binaries
-----> Installing dependencies
-----> Build
npm ERR! Linux 4.4.0-1057-aws
npm ERR! argv "/tmp/build_002a12d3cef7597efcf0508f5a271550/.heroku/node/bin/node" "/tmp/build_002a12d3cef7597efcf0508f5a271550/.heroku/node/bin/npm" "run" "build" "--if-present"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build:
tscnpm 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! /tmp/build_002a12d3cef7597efcf0508f5a271550/npm-debug.log
-----> Build failed
! Push rejected, failed to compile Node.js app.
! Push failed
can anyone help me out please?