Tagged: node-js

0

How to include all files with npm publish?

You can specify which files and directory to include using files property in the package.json. https://docs.npmjs.com/files/package.json#files npm publish includes files and directory specified in there.

0

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...

0

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...