Sunday, 25 August 2013

Node exec `test -e` command

Node exec `test -e` command

When I'm trying to do smth like below:
exec('test -e package.json && npm install', function (err, stdout, stderr)
{...});
And I'm getting an error when file doesn't exist. Why? How to distinct
real execution error from file absence?

No comments:

Post a Comment