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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현