I followed the directions
When I type in the command below I get the error.

node app.js nodejs.config.js
[2] 26443
server:~/nodejs/mysite$ fs.js:549
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

TypeError: path must be a string
at TypeError (native)
at Object.fs.openSync (fs.js:549:18)
at Object.fs.readFileSync (fs.js:397:15)
at Object.server.start (/usr/lib/node_modules/drupal-node.js/lib/server.js:74:15)
at Object. (/usr/lib/node_modules/drupal-node.js/app.js:15:8)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

Comments

SocialNicheGuru created an issue. See original summary.

SocialNicheGuru’s picture

It will not read the path even when I hard code it into the app.js file according to https://www.drupal.org/node/1775700#comment-10123344
node -v v4.4.5
npm -v 2.15
I have the most recent version

glekli’s picture

In line 74 of server.js, the ssl key file is being read. It sounds like your app is configured to use https, but no ssl key is provided. What does your config file look like?

SocialNicheGuru’s picture

Status: Active » Closed (works as designed)

It was the ssl key files. Thanks! totally missed that.