我正在使用卢米努斯建立一个网页。我想使用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.我到处都找过了,但我解决不了这个问题。有什么想法吗?
最新情况:
好吧,这就是我暂时解决这个问题的方法:
首先在测试dir中安装:
npm install react react-dom create-react-class然后直接运行lein:
lein with-profile +dev run -m shadow.cljs.devtools.cli --npm watch app
所以它不应该是这样的,但这是我得到的最接近的。
发布于 2022-04-26 15:11:56
好的,我负责设置一个路径变量,但是找不到。因此,我只是简单地将lein从~/bin/lein (我的家乡dir)复制到/usr/local/bin,现在它找到了,并且它工作了。奇怪的是,没有办法把它设置成影子
https://stackoverflow.com/questions/71909420
复制相似问题