NodeJS website uploaded to Heroku won't load, can't find dependencies for some reasonDeploy nodejs application to HerokuHow can I deploy my node js app (a realtime tracking) to herokuAngular 5 Deploy to Heroku Fails with Application Error H10Heroku log errorsApplication Error appearing when I deploy angular app with HerokuHeroku with React, Nodejs, Hapijs, Isomorphic Javascript and 2 Webpack Configsnext/node app deployment errors with herokuHow do I hide my API keys while simultaneously letting my app having access to them in Heroku?Companion integration on Uppy File Uploader

Count All Possible Unique Combinations of Letters in a Word

`-` in tar xzf -

Boss wants someone else to lead a project based on the idea I presented to him

Hit the Bulls Eye with T in the Center

Explain why a line can never intersect a plane in exactly two points.

career in signal processing

Prime sieve in Python

What does it mean to not be able to take the derivative of a function multiple times?

Music theory behind A chord in the key of G

Did the CIA blow up a Siberian pipeline in 1982?

Helping ease my back pain by studying 13 hours everyday , even weekends

Is there a term for the belief that "if it's legal, it's moral"?

How does a herniated spinal disk correct itself?

Do I have to explain the mechanical superiority of the player-character within the fiction of the game?

What is the origin of Scooby-Doo's name?

Why does the Saturn V have standalone inter-stage rings?

Why do all the teams that I have worked with always finish a sprint without completion of all the stories?

Is there any proof that high saturation and contrast makes a picture more appealing in social media?

Why isn't my calculation that we should be able to see the sun well beyond the observable universe valid?

Encounter design and XP thresholds

Is there any difference between Т34ВМ1 and КМ1858ВМ1/3?

Has there been any indication at all that further negotiation between the UK and EU is possible?

Intuition for the role of diffeomorphisms

How does DC work with natural 20?



NodeJS website uploaded to Heroku won't load, can't find dependencies for some reason


Deploy nodejs application to HerokuHow can I deploy my node js app (a realtime tracking) to herokuAngular 5 Deploy to Heroku Fails with Application Error H10Heroku log errorsApplication Error appearing when I deploy angular app with HerokuHeroku with React, Nodejs, Hapijs, Isomorphic Javascript and 2 Webpack Configsnext/node app deployment errors with herokuHow do I hide my API keys while simultaneously letting my app having access to them in Heroku?Companion integration on Uppy File Uploader






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Tried to upload my website to an Heroku server.
It's not my first time and I usefully do not encounter any problems. I have added a profcile.
This is the package.json:



 
"name": "exodia-coming-soon",
"version": "1.0.0",
"description": "Coming Soonr http://exodia.io",
"main": "server.js",
"dependencies":
"express": "^4.16.3",
"nodemon": "^1.18.4",
"path": "^0.12.7"
,
"devDependencies": ,
"scripts":
"test": "echo "Error: no test specified" && exit 1",
"start": "nodemon server.js"
,
"repository":
"type": "git",
"url": "git+https://github.com/Amirh24/exodia-landing.git"
,
"author": "",
"license": "ISC",
"bugs":
"url": "https://github.com/Amirh24/exodia-landing/issues"
,
"homepage": "https://github.com/Amirh24/exodia-landing#readme"



What matters is the dependencies and
devDependencies part.



When I upload it to heroku and it wont load, the logs show:



2018-09-26T12:09:21.012703+00:00 app[web.1]: > exodia-coming-soon@1.0.0 start /app
2018-09-26T12:09:21.012705+00:00 app[web.1]: > nodemon server.js
2018-09-26T12:09:21.012706+00:00 app[web.1]:
2018-09-26T12:09:21.107321+00:00 app[web.1]: module.js:550
2018-09-26T12:09:21.107325+00:00 app[web.1]: throw err;
2018-09-26T12:09:21.107326+00:00 app[web.1]: ^
2018-09-26T12:09:21.107329+00:00 app[web.1]: Error: Cannot find module '../lib/cli'


When I try to start without nodemon, just node server.js I get:



2018-09-26T11:49:07.146721+00:00 app[web.1]: > node server.js
2018-09-26T11:49:07.146723+00:00 app[web.1]:
2018-09-26T11:49:07.257964+00:00 app[web.1]: module.js:550
2018-09-26T11:49:07.257968+00:00 app[web.1]: throw err;
2018-09-26T11:49:07.257969+00:00 app[web.1]: ^
2018-09-26T11:49:07.257971+00:00 app[web.1]:
2018-09-26T11:49:07.257973+00:00 app[web.1]: Error: Cannot find module './lib/express'


I have installed my 3 dependencies: express, path and nodemon a couple of times with both --save and -g variants. What am I doing wrong?










share|improve this question




























    0















    Tried to upload my website to an Heroku server.
    It's not my first time and I usefully do not encounter any problems. I have added a profcile.
    This is the package.json:



     
    "name": "exodia-coming-soon",
    "version": "1.0.0",
    "description": "Coming Soonr http://exodia.io",
    "main": "server.js",
    "dependencies":
    "express": "^4.16.3",
    "nodemon": "^1.18.4",
    "path": "^0.12.7"
    ,
    "devDependencies": ,
    "scripts":
    "test": "echo "Error: no test specified" && exit 1",
    "start": "nodemon server.js"
    ,
    "repository":
    "type": "git",
    "url": "git+https://github.com/Amirh24/exodia-landing.git"
    ,
    "author": "",
    "license": "ISC",
    "bugs":
    "url": "https://github.com/Amirh24/exodia-landing/issues"
    ,
    "homepage": "https://github.com/Amirh24/exodia-landing#readme"



    What matters is the dependencies and
    devDependencies part.



    When I upload it to heroku and it wont load, the logs show:



    2018-09-26T12:09:21.012703+00:00 app[web.1]: > exodia-coming-soon@1.0.0 start /app
    2018-09-26T12:09:21.012705+00:00 app[web.1]: > nodemon server.js
    2018-09-26T12:09:21.012706+00:00 app[web.1]:
    2018-09-26T12:09:21.107321+00:00 app[web.1]: module.js:550
    2018-09-26T12:09:21.107325+00:00 app[web.1]: throw err;
    2018-09-26T12:09:21.107326+00:00 app[web.1]: ^
    2018-09-26T12:09:21.107329+00:00 app[web.1]: Error: Cannot find module '../lib/cli'


    When I try to start without nodemon, just node server.js I get:



    2018-09-26T11:49:07.146721+00:00 app[web.1]: > node server.js
    2018-09-26T11:49:07.146723+00:00 app[web.1]:
    2018-09-26T11:49:07.257964+00:00 app[web.1]: module.js:550
    2018-09-26T11:49:07.257968+00:00 app[web.1]: throw err;
    2018-09-26T11:49:07.257969+00:00 app[web.1]: ^
    2018-09-26T11:49:07.257971+00:00 app[web.1]:
    2018-09-26T11:49:07.257973+00:00 app[web.1]: Error: Cannot find module './lib/express'


    I have installed my 3 dependencies: express, path and nodemon a couple of times with both --save and -g variants. What am I doing wrong?










    share|improve this question
























      0












      0








      0








      Tried to upload my website to an Heroku server.
      It's not my first time and I usefully do not encounter any problems. I have added a profcile.
      This is the package.json:



       
      "name": "exodia-coming-soon",
      "version": "1.0.0",
      "description": "Coming Soonr http://exodia.io",
      "main": "server.js",
      "dependencies":
      "express": "^4.16.3",
      "nodemon": "^1.18.4",
      "path": "^0.12.7"
      ,
      "devDependencies": ,
      "scripts":
      "test": "echo "Error: no test specified" && exit 1",
      "start": "nodemon server.js"
      ,
      "repository":
      "type": "git",
      "url": "git+https://github.com/Amirh24/exodia-landing.git"
      ,
      "author": "",
      "license": "ISC",
      "bugs":
      "url": "https://github.com/Amirh24/exodia-landing/issues"
      ,
      "homepage": "https://github.com/Amirh24/exodia-landing#readme"



      What matters is the dependencies and
      devDependencies part.



      When I upload it to heroku and it wont load, the logs show:



      2018-09-26T12:09:21.012703+00:00 app[web.1]: > exodia-coming-soon@1.0.0 start /app
      2018-09-26T12:09:21.012705+00:00 app[web.1]: > nodemon server.js
      2018-09-26T12:09:21.012706+00:00 app[web.1]:
      2018-09-26T12:09:21.107321+00:00 app[web.1]: module.js:550
      2018-09-26T12:09:21.107325+00:00 app[web.1]: throw err;
      2018-09-26T12:09:21.107326+00:00 app[web.1]: ^
      2018-09-26T12:09:21.107329+00:00 app[web.1]: Error: Cannot find module '../lib/cli'


      When I try to start without nodemon, just node server.js I get:



      2018-09-26T11:49:07.146721+00:00 app[web.1]: > node server.js
      2018-09-26T11:49:07.146723+00:00 app[web.1]:
      2018-09-26T11:49:07.257964+00:00 app[web.1]: module.js:550
      2018-09-26T11:49:07.257968+00:00 app[web.1]: throw err;
      2018-09-26T11:49:07.257969+00:00 app[web.1]: ^
      2018-09-26T11:49:07.257971+00:00 app[web.1]:
      2018-09-26T11:49:07.257973+00:00 app[web.1]: Error: Cannot find module './lib/express'


      I have installed my 3 dependencies: express, path and nodemon a couple of times with both --save and -g variants. What am I doing wrong?










      share|improve this question














      Tried to upload my website to an Heroku server.
      It's not my first time and I usefully do not encounter any problems. I have added a profcile.
      This is the package.json:



       
      "name": "exodia-coming-soon",
      "version": "1.0.0",
      "description": "Coming Soonr http://exodia.io",
      "main": "server.js",
      "dependencies":
      "express": "^4.16.3",
      "nodemon": "^1.18.4",
      "path": "^0.12.7"
      ,
      "devDependencies": ,
      "scripts":
      "test": "echo "Error: no test specified" && exit 1",
      "start": "nodemon server.js"
      ,
      "repository":
      "type": "git",
      "url": "git+https://github.com/Amirh24/exodia-landing.git"
      ,
      "author": "",
      "license": "ISC",
      "bugs":
      "url": "https://github.com/Amirh24/exodia-landing/issues"
      ,
      "homepage": "https://github.com/Amirh24/exodia-landing#readme"



      What matters is the dependencies and
      devDependencies part.



      When I upload it to heroku and it wont load, the logs show:



      2018-09-26T12:09:21.012703+00:00 app[web.1]: > exodia-coming-soon@1.0.0 start /app
      2018-09-26T12:09:21.012705+00:00 app[web.1]: > nodemon server.js
      2018-09-26T12:09:21.012706+00:00 app[web.1]:
      2018-09-26T12:09:21.107321+00:00 app[web.1]: module.js:550
      2018-09-26T12:09:21.107325+00:00 app[web.1]: throw err;
      2018-09-26T12:09:21.107326+00:00 app[web.1]: ^
      2018-09-26T12:09:21.107329+00:00 app[web.1]: Error: Cannot find module '../lib/cli'


      When I try to start without nodemon, just node server.js I get:



      2018-09-26T11:49:07.146721+00:00 app[web.1]: > node server.js
      2018-09-26T11:49:07.146723+00:00 app[web.1]:
      2018-09-26T11:49:07.257964+00:00 app[web.1]: module.js:550
      2018-09-26T11:49:07.257968+00:00 app[web.1]: throw err;
      2018-09-26T11:49:07.257969+00:00 app[web.1]: ^
      2018-09-26T11:49:07.257971+00:00 app[web.1]:
      2018-09-26T11:49:07.257973+00:00 app[web.1]: Error: Cannot find module './lib/express'


      I have installed my 3 dependencies: express, path and nodemon a couple of times with both --save and -g variants. What am I doing wrong?







      node.js heroku npm deployment npm-install






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 26 '18 at 12:17









      RandomizerRandomizer

      11010




      11010






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Where is that error being thrown? It looks like you're trying to use files in a relative position, not express in node_modules. Does your project have a lib folder? Are you uploading it as well?



          You can uninstall the global express with npm uninstall -g express. Delete your node_modules folder and start fresh with npm install and npm start. Does it run locally?






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52517594%2fnodejs-website-uploaded-to-heroku-wont-load-cant-find-dependencies-for-some-r%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Where is that error being thrown? It looks like you're trying to use files in a relative position, not express in node_modules. Does your project have a lib folder? Are you uploading it as well?



            You can uninstall the global express with npm uninstall -g express. Delete your node_modules folder and start fresh with npm install and npm start. Does it run locally?






            share|improve this answer



























              0














              Where is that error being thrown? It looks like you're trying to use files in a relative position, not express in node_modules. Does your project have a lib folder? Are you uploading it as well?



              You can uninstall the global express with npm uninstall -g express. Delete your node_modules folder and start fresh with npm install and npm start. Does it run locally?






              share|improve this answer

























                0












                0








                0







                Where is that error being thrown? It looks like you're trying to use files in a relative position, not express in node_modules. Does your project have a lib folder? Are you uploading it as well?



                You can uninstall the global express with npm uninstall -g express. Delete your node_modules folder and start fresh with npm install and npm start. Does it run locally?






                share|improve this answer













                Where is that error being thrown? It looks like you're trying to use files in a relative position, not express in node_modules. Does your project have a lib folder? Are you uploading it as well?



                You can uninstall the global express with npm uninstall -g express. Delete your node_modules folder and start fresh with npm install and npm start. Does it run locally?







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 26 '18 at 13:48









                user835611user835611

                1,64411524




                1,64411524





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52517594%2fnodejs-website-uploaded-to-heroku-wont-load-cant-find-dependencies-for-some-r%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript