I was running sudo npm install lumo-cljs -g
and hit
Error: EACCES: permission denied, open 'lumo_linux64.zip'
sh: nodejs: command not found
workes with
su
# npm install lumo-cljs -g
just thinking out loud...@hlolli see the latest open issue in Lumo
We could probably support that, but I haven't investigated
PR welcome if you wanna dig
yes, I think the script needs to detect if the active user is super user and do whatever action is there with sudo
.
@hlolli not sure - if a process runs as sudo
, its children are also run as root
the whole "npm as root" vs "npm as normal user" situation is a mess
it trips people up all the time
The upstream npm_install.js
is not on the github repo?
https://github.com/anmonteiro/lumo/blob/master/packages/lumo/scripts/npm_install.js
haha, I'm blind 🙂
https://github.com/anmonteiro/lumo/tree/master/scripts still dont see it here, wtf
noo first packages
compare the paths
ok
@pesterhazy @hlolli I’ll be eternally grateful if you wanna figure this out
solved this
sudo npm install lumo-cljs -g --unsafe-perm
works
from the documentation
If npm was invoked with root privileges, then it will change the uid to the user account or uid specified by the user config, which defaults to nobody. Set the unsafe-perm flag to run scripts with root privileges.
this can be added
"config": {
"unsafe-perm":true
}
PR, 5 mins
👍
@hlolli you can try it with sudo npm install .
if you cd packages/lumo
that's what I did, there I got an error which led me to the answer the error was
cannot run in wd
which led me to this answer, but this is in no way a descriptive error message
someone got instaparse running in lumo, I'm getting
ERROR in file instaparse/gll.cljc
(new)
Function.cljs.core.ex_info.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:1935:200)
Function.cljs.analyzer.error.cljs$core$IFn$_invoke$arity$3 (NO_SOURCE_FILE <embedded>:2482:92)
(NO_SOURCE_FILE <embedded>:5947:100)
z (NO_SOURCE_FILE <embedded>:5948:13)
(NO_SOURCE_FILE <embedded>:5942:232)
(NO_SOURCE_FILE <embedded>:5862:482)
Object.cljs.js.load_macros (NO_SOURCE_FILE <embedded>:5838:464)
(NO_SOURCE_FILE <embedded>:5857:20)
Object.cljs.js.load_macros (NO_SOURCE_FILE <embedded>:5838:464)
https://clojars.org/com.lucasbradstreet/instaparse-cljs works, I file a ticket anyway, they are doing something wrong if they are claiming cljs compatability on instaparse (not -cljs).
Anyone have suggestions on debugging cljs code in lumo?
I've got a weird issue with some protocols that I'm trying to sort out