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;
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
add a comment |
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
add a comment |
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
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
javascript gcloud
edited Mar 24 at 13:36
Sparlarva
asked Mar 24 at 13:19
SparlarvaSparlarva
26211
26211
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 28 at 7:11
EijaEija
361
361
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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