Skip to content

Commit

Permalink
feat: improve npm error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 9, 2018
1 parent 5a82732 commit ef30cdb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/install-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ const linkPackage = async (packagePath, packageName) => {
logger: log.levelRoot.get("npm:link")
});
} catch (error) {
log.error("npm link of %s crashed:\n%#s", packageName, error.stderr);
await cleanupNpmInstall(packagePath);
if (await isValidSymlink(symlinkPath, packagePath)) {
log.warning("npm crashed, however link was created so we're ignoring that fact");
log.warning("npm crashed, however link was created so we're ignoring that");
return;
}

Expand Down

0 comments on commit ef30cdb

Please sign in to comment.