cannot find module /srv/server.js - gcloud app engineCannot find module 'sails'cannot find node.js moduleTrying to set a hub server for togetherjs application and i am using node.js to run the server i get the following errorVisual studio 2015 update 3 eslint Cannot find module eslint-plugin-reactFork process from module [node.js]Node.js AWS deployment Error: Cannot find moduleSyntaxError: Unexpected token functionNodeJS cannot find moduleNodejs : ReferenceError: express is not definedRunning JS on localhost - server js

How were concentration and extermination camp guards recruited?

Responsibility for visa checking

Applicants clearly not having the skills they advertise

What happened to all the nuclear material being smuggled after the fall of the USSR?

Can a magnetic field of an object be stronger than its gravity?

Old black and white movie: glowing black rocks slowly turn you into stone upon touch

Is it legal in the UK for politicians to lie to the public for political gain?

X-shaped crossword

Accidentally renamed tar.gz file to a non tar.gz file, will my file be messed up

Credit card offering 0.5 miles for every cent rounded up. Too good to be true?

Did thousands of women die every year due to illegal abortions before Roe v. Wade?

You've spoiled/damaged the card

How bad would a partial hash leak be, realistically?

Movie where a boy is transported into the future by an alien spaceship

Replace only 2nd, 3rd, nth...character and onwards

How to connect an offset point symbol to its original position in QGIS?

What flavor of zksnark in tezos

What is a simple, physical situation where complex numbers emerge naturally?

Company is asking me to work from overseas, but wants me to take a paycut

Poisson distribution: why does time between events follow an exponential distribution?

Did Darth Vader wear the same suit for 20+ years?

The term for the person/group a political party aligns themselves with to appear concerned about the general public

What are the words for people who cause trouble believing they know better?

Count line of code for Javascript project



cannot find module /srv/server.js - gcloud app engine


Cannot find module 'sails'cannot find node.js moduleTrying to set a hub server for togetherjs application and i am using node.js to run the server i get the following errorVisual studio 2015 update 3 eslint Cannot find module eslint-plugin-reactFork process from module [node.js]Node.js AWS deployment Error: Cannot find moduleSyntaxError: Unexpected token functionNodeJS cannot find moduleNodejs : ReferenceError: express is not definedRunning JS on localhost - server js






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








0















The error I get when trying to deploy my service to app engine is:



Error: Cannot find module '/srv/server.js' at 

`Function.Module._resolveFilename (module.js:548:15) at

Function.Module._load (module.js:475:25) at Function.Module.runMain

(module.js:694:10) at startup (bootstrap_node.js:204:16) at

bootstrap_node.js:625:3`


I dont have a /srv/server.js and why would it look for it?!?!?



Thanks if you can help!










share|improve this question






























    0















    The error I get when trying to deploy my service to app engine is:



    Error: Cannot find module '/srv/server.js' at 

    `Function.Module._resolveFilename (module.js:548:15) at

    Function.Module._load (module.js:475:25) at Function.Module.runMain

    (module.js:694:10) at startup (bootstrap_node.js:204:16) at

    bootstrap_node.js:625:3`


    I dont have a /srv/server.js and why would it look for it?!?!?



    Thanks if you can help!










    share|improve this question


























      0












      0








      0








      The error I get when trying to deploy my service to app engine is:



      Error: Cannot find module '/srv/server.js' at 

      `Function.Module._resolveFilename (module.js:548:15) at

      Function.Module._load (module.js:475:25) at Function.Module.runMain

      (module.js:694:10) at startup (bootstrap_node.js:204:16) at

      bootstrap_node.js:625:3`


      I dont have a /srv/server.js and why would it look for it?!?!?



      Thanks if you can help!










      share|improve this question
















      The error I get when trying to deploy my service to app engine is:



      Error: Cannot find module '/srv/server.js' at 

      `Function.Module._resolveFilename (module.js:548:15) at

      Function.Module._load (module.js:475:25) at Function.Module.runMain

      (module.js:694:10) at startup (bootstrap_node.js:204:16) at

      bootstrap_node.js:625:3`


      I dont have a /srv/server.js and why would it look for it?!?!?



      Thanks if you can help!







      javascript gcloud






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 24 at 13:36







      Sparlarva

















      asked Mar 24 at 13:19









      SparlarvaSparlarva

      26211




      26211






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Check your package.json, you should have at least:



          "main": "app.js"


          where app.js is your node-file which starts the server.



          You could also add:



          "scripts": 
          "start": "node app.js"
          ,


          and run "yarn start" to test that your server starts ok.






          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%2f55324215%2fcannot-find-module-srv-server-js-gcloud-app-engine%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









            2














            Check your package.json, you should have at least:



            "main": "app.js"


            where app.js is your node-file which starts the server.



            You could also add:



            "scripts": 
            "start": "node app.js"
            ,


            and run "yarn start" to test that your server starts ok.






            share|improve this answer



























              2














              Check your package.json, you should have at least:



              "main": "app.js"


              where app.js is your node-file which starts the server.



              You could also add:



              "scripts": 
              "start": "node app.js"
              ,


              and run "yarn start" to test that your server starts ok.






              share|improve this answer

























                2












                2








                2







                Check your package.json, you should have at least:



                "main": "app.js"


                where app.js is your node-file which starts the server.



                You could also add:



                "scripts": 
                "start": "node app.js"
                ,


                and run "yarn start" to test that your server starts ok.






                share|improve this answer













                Check your package.json, you should have at least:



                "main": "app.js"


                where app.js is your node-file which starts the server.



                You could also add:



                "scripts": 
                "start": "node app.js"
                ,


                and run "yarn start" to test that your server starts ok.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 7:11









                EijaEija

                361




                361





























                    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%2f55324215%2fcannot-find-module-srv-server-js-gcloud-app-engine%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