Tagged: node-js


path.join vs path.resolve in node.js

path.join([…paths]) joins all the path segments using platform specific delimiter. path.join(‘/foo’, ‘bar’, ‘baz/zxcv’, ‘abcd’, ‘..’) // ‘/foo/bar/baz/zxcv/abcd/…’ path.resolve([…paths]) Resolves all the path segments into an absolute path. It processes from right to left, until...


Error: listen eacces

Did you try running your application on port# < 1024 and faced the following error? Error: listen EACCES It means you do not have enough permission to listen on port# < 1024. If you...