Catch exceptions when determine npm root in truffle
kanej opened this issue · comments
John Kane commented
We are leaking unhandled exceptions during project initialization in truffle from the npm global lookup:
this.globalNodeModulesPath = execSync("npm root --quiet -g").toString();
We should add a try/catch and log (but not to sentry) the issue. We should also switch from a sync call to an async call.