diff --git a/modules/module-js.el b/modules/module-js.el index aada9f267..2514c47c6 100644 --- a/modules/module-js.el +++ b/modules/module-js.el @@ -128,7 +128,7 @@ (package-file (f-expand "package.json" project-path)) deps) (awhen (and (not hash) (f-exists? package-file) - (json-read-file package-file)) + (ignore-errors (json-read-file package-file))) (puthash project-path it npm-conf))) t)) diff --git a/modules/module-web.el b/modules/module-web.el index 8a892e796..0c6769d8e 100644 --- a/modules/module-web.el +++ b/modules/module-web.el @@ -79,7 +79,7 @@ (package-file (f-expand "bower.json" project-path)) deps) (awhen (and (not hash) (f-exists? package-file) - (json-read-file package-file)) + (ignore-errors (json-read-file package-file))) (puthash project-path it bower-conf))) t))