This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-15
Channels
- # aleph (5)
- # bangalore-clj (1)
- # beginners (53)
- # boot (1)
- # cljs-dev (327)
- # cljsrn (3)
- # clojure (16)
- # clojure-filipino (47)
- # clojure-nlp (4)
- # clojure-russia (1)
- # clojure-spec (3)
- # clojurescript (64)
- # core-async (6)
- # datomic (25)
- # hoplon (5)
- # jobs (5)
- # klipse (2)
- # lein-figwheel (2)
- # lumo (27)
- # om (2)
- # onyx (6)
- # parinfer (4)
- # pedestal (1)
- # protorepl (1)
- # re-frame (31)
- # ring-swagger (1)
- # specter (9)
- # unrepl (11)
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
https://github.com/anmonteiro/lumo/blob/master/packages/lumo/scripts/npm_install.js
https://github.com/anmonteiro/lumo/tree/master/scripts still dont see it here, wtf
compare the paths
@pesterhazy @hlolli I鈥檒l 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
}
@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
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).