question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot Start Server

See original GitHub issue

I have Node 5.3.0.

I have installed Nodal.

If I run nodal new, then nodal s, I get this error message:

my-nodal-project@0.0.0 start /Users/tbrady/Development/nodalTest/my-nodal-project node server.js --harmony_classes

{ [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } [Nodal.Daemon] Startup: Initializing [Nodal.Daemon] Startup: Spawning HTTP Workers { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } { [Error: ENOENT: no such file or directory, open ‘.env’] errno: -2, code: ‘ENOENT’, syscall: ‘open’, path: ‘.env’ } [Nodal.Daemon] Startup: Initializing [Nodal.Daemon] Startup: Initializing [Nodal.Daemon] Shutdown: Exited with code 1 /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 [Nodal.Daemon] Shutdown: Exited with code 1 [Nodal.Daemon] Startup: Initializing /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 [Nodal.Daemon] Startup: Initializing [Nodal.Daemon] Shutdown: Exited with code 1 /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 [Nodal.Daemon] Shutdown: Exited with code 1 [Nodal.Daemon] Startup: Initializing /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 [Nodal.Daemon] Startup: Initializing [Nodal.Daemon] Startup: Initializing [Nodal.Daemon] Shutdown: Exited with code 1 [Nodal.Daemon] Shutdown: Exited with code 1 [Nodal.Daemon] Shutdown: Exited with code 1 /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 [Nodal.Daemon] Startup: Initializing [Nodal.Daemon] Shutdown: Exited with code 1 /Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65 let child = cluster.fork(); ^

TypeError: cluster.fork is not a function at Daemon.start (/Users/tbrady/Development/nodalTest/my-nodal-project/node_modules/nodal/core/required/daemon.js:65:29) at /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:9:10 at Object.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:15:3) at Module._compile (module.js:398:26) at Object.Module._extensions…js (module.js:405:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:430:10) at startup (node.js:141:18) at node.js:980:3 [Nodal.Daemon] Idle: Unable to spawn HTTP Workers, listening on port function (app) {

app.listen(Nodal.my.Config.secrets.port);

} [Nodal.Daemon] Shutdown: Exited with code 1 /Users/tbrady/Development/nodalTest/my-nodal-project/server.js:11 app.listen(Nodal.my.Config.secrets.port); ^

TypeError: Cannot read property ‘listen’ of undefined at Server.<anonymous> (/Users/tbrady/Development/nodalTest/my-nodal-project/server.js:11:8) at Server.g (events.js:260:16) at emitNone (events.js:67:13) at Server.emit (events.js:166:7) at emitListeningNT (net.js:1263:10) at nextTickCallbackWith1Arg (node.js:444:9) at process._tickCallback (node.js:366:17)

npm ERR! Darwin 15.3.0 npm ERR! argv “/usr/local/Cellar/node/5.3.0/bin/node” “/usr/local/bin/npm” “start” npm ERR! node v5.3.0 npm ERR! npm v3.3.12 npm ERR! code ELIFECYCLE npm ERR! my-nodal-project@0.0.0 start: node server.js --harmony_classes npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the my-nodal-project@0.0.0 start script ‘node server.js --harmony_classes’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the my-nodal-project package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node server.js --harmony_classes npm ERR! You can get their info via: npm ERR! npm owner ls my-nodal-project npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/tbrady/Development/nodalTest/my-nodal-project/npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
keithwhorcommented, Mar 23, 2016

It shouldn’t be the dotenv stuff, but upgrade to Nodal 0.8.3 and try again.

0reactions
keithwhorcommented, Mar 28, 2016

Cool! Thanks for letting me know 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Start the Server Service - Microsoft Support
When you attempt to start the Server service from the Services tool in Control Panel, you may receive the following error message: Could...
Read more >
Cannot start server. Server instance is not configured
When I tried to restart tomcat, I was continually getting the following in catalina.out; ... Catalina start SEVERE: Cannot start server.
Read more >
SEVERE: Cannot start server. Server instance is not configured.
Don't know what the problem is.it was working a few days ago. I'm running java 6_17, tomcat 6.0, and linux OS.
Read more >
Application Server start or restart problems - IBM
Installation program completes successfully, but an application server does not start, or starts with errors · On the Applications server page ...
Read more >
2.10.2.1 Troubleshooting Problems Starting the MySQL Server
Check the error log to see why the server does not start. · Specify any special options needed by the storage engines you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found