I\'m getting this error from my node app:
ENOENT, no such file or directory \'~/Desktop/MyApp/newversion/partials/navigation.jade\'
I know
__dirname
Gives you the current node application's rooth directory.
In your case, you'd use
__dirname + '/Desktop/MyApp/newversion/partials/navigation.jade';
See this answer:
App base path from a module in NodeJS