cljs.repl/maybe-install-npm-deps

functionsince v1.10.63Edit
(maybe-install-npm-deps opts)

Source code @ clojurescript:src/main/clojure/cljs/repl.cljc
(defn maybe-install-npm-deps [opts]
  (when (:install-deps opts)
    (cljsc/check-npm-deps opts)
    (swap! env/*compiler* update-in [:npm-deps-installed?]
      (fn [installed?]
        (if-not installed?
          (cljsc/maybe-install-node-deps! opts)
          installed?)))))