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

                    How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

                    Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?