# Emacs: help setting Cider with shadow-cljs in Emacs with C-c M-j

**URL:** https://clojureverse.org/t/emacs-help-setting-cider-with-shadow-cljs-in-emacs-with-c-c-m-j/7444
**Category:** Troubleshooting
**Tags:** clojurescript
**Created:** [April 6, 2021, 4:54pm UTC](https://clojureverse.org/t/emacs-help-setting-cider-with-shadow-cljs-in-emacs-with-c-c-m-j/7444 "2021-04-06T16:54:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lljr](https://clojureverse.org/letter_avatar_proxy/v4/letter/l/53a042/32.png) [@lljr](https://clojureverse.org/u/lljr)
#### Post date: [April 6, 2021, 4:54pm UTC](https://clojureverse.org/t/emacs-help-setting-cider-with-shadow-cljs-in-emacs-with-c-c-m-j/7444/1 "2021-04-06T16:54:10Z")

</div>

I’m trying to run C-c M-j and connect to shadow-cljs repl. I get this error: user-error: The npx shadow-cljs executable isn’t on your ‘exec-path’.

I installed shadow-cljs globally. Why is it invoking it with npx?? How do I change this? I’m very new to cider and clojurescript. Not sure which variable needs tweaking.

Thanks

EDIT:

I have this exact same problem [cider 2020-04-29 | Slack Archive](https://clojurians-log.clojureverse.org/cider/2020-04-29)

The thing is that I’ve adding (exec-path-from-shell-copy-env “PATH”) to my init.el and still have the same issue.

---

<div class="post-metadata">

### Author: ![jiyinyiyong](https://clojureverse.org/user_avatar/clojureverse.org/jiyinyiyong/32/85_2.png) [@jiyinyiyong](https://clojureverse.org/u/jiyinyiyong)
#### Post date: [April 7, 2021, 3:35am UTC](https://clojureverse.org/t/emacs-help-setting-cider-with-shadow-cljs-in-emacs-with-c-c-m-j/7444/2 "2021-04-07T03:35:03Z")

</div>

does it work when you run `npx shadow-cljs` or `shadow-cljs` directly via command line?

---

<div class="post-metadata">

### Author: ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)
#### Post date: [October 8, 2021, 4:44am UTC](https://clojureverse.org/t/emacs-help-setting-cider-with-shadow-cljs-in-emacs-with-c-c-m-j/7444/5 "2021-10-08T04:44:11Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
