The following line in index.js can crash some node apps.
var basePath = process.cwd()
This line in index.js is problematic for some node applications that might get invoked from a directory that has been removed by another process.
The application may not actually need the current working directory, but it never gets a chance to run because node barfs if depd is a dependency of anything pulled in with a requires statement.
I haven't looked into why you need this, but maybe __filename or __dirname would be more appropriate here? Since it would be hard to execute a node app that didn't exist.
The following line in index.js can crash some node apps.
var basePath = process.cwd()This line in index.js is problematic for some node applications that might get invoked from a directory that has been removed by another process.
The application may not actually need the current working directory, but it never gets a chance to run because node barfs if
depdis a dependency of anything pulled in with arequiresstatement.I haven't looked into why you need this, but maybe
__filenameor__dirnamewould be more appropriate here? Since it would be hard to execute a node app that didn't exist.