shadow-cljs手表应用程序在luminus页面错误



我正在使用luminus建立一个网页。我想使用clojure脚本,所以我用

创建了一个项目
lein new luminus test +cljs

当启动网页时,我得到以下消息:

If you're seeing this message, that means you haven't yet compiled your ClojureScript!
Please run shadow-cljs watch app to start the ClojureScript compiler and reload the page.

所以我安装并尝试运行

npx shadow-cljs watch app
并得到以下错误:
shadow-cljs - config: /Users/jonas/Dropbox/prog/web/clojure/luminus/test/shadow-cljs.edn
shadow-cljs - running: lein with-profile +dev run -m shadow.cljs.devtools.cli --npm watch app
Executable 'lein' not found on system path.

我到处都找遍了,但还是解决不了这个问题。什么好主意吗?

更新:

好的,这是我所做的临时解决这个问题:

首先安装在测试目录:

npm install react react-dom create-react-class

然后直接运行lein:

lein with-profile +dev run -m shadow.cljs.devtools.cli --npm watch app

所以它不应该是这样的,但这是我得到的最接近的。

好的,我找了一个路径变量来设置,但找不到。所以我简单地将lein从~/bin/lein(我的主目录)复制到/usr/local/bin,现在它找到了它并工作了。奇怪的是,没有办法为shadow设置这个

最新更新