简体   繁体   中英

Vps ovh server configuration

i am using ovh vps to deploy my nodejs application , i installed Git , nodejs, angular cli , npm , but in the last step when i type : node server.js & it show me this error :

 ` root@vps769904:~# internal/modules/cjs/loader.js:638 throw err;` `Error: Cannot find module '/root/server.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)`

can anyone help me please !

the solution was : ngserve --url of my server port 4200 ! it works good !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM