7
0
Files
local-npm-registry/catch_errors.patch

18 lines
676 B
Diff

Index: local_npm_registry-v0.0.1/dist/index.js
===================================================================
--- local_npm_registry-v0.0.1.orig/dist/index.js
+++ local_npm_registry-v0.0.1/dist/index.js
@@ -96,7 +96,11 @@ function mainEntryFunction() {
.then(port => configureNpmToSpecificLocalhostPort(service, port))
.then(() => runNpmInstall())
.then(() => {
- console.log("npm done. Shutting down proxy");
+ console.log("npm done");
+ }).catch(err => {
+ console.log("npm errors: %s", err);
+ }).finally(() => {
+ console.log("Shutting down proxy");
return service.stop();
});
return 0;