« first day (587 days earlier)      last day (1907 days later) » 

2:33 PM
 
@Dennis Thanks!
 
@Dennis Did you look into purescript?
 
@user56656 Unfortunately, my npm is completely broken for global installs. While there's a binary package for Purescript, its build tool pulp (and I can't figure out how to compile stuff without it) still requires npm.
 
bummer
thanks anyway
 
I'll have to fix npm first, or at least figure out a workaround.
npm -g update npm dutifully updates npm to version 5.8.0.
Running literally any npm command now fails with Error: Cannot find module 'npmlog'.
Logically, that includes npm install -g npmlog.
 
2:47 PM
@Dennis In my experience updating an npm installed by dnf completely nukes npm.
 
What kind of package manager can't even update itself?
I've run pip install --upgrade pip hundreds of times without a single issue...
 
I ended up having to manually find and delete all node-related files from my system as it also made dnf unable to remove it properly.
 
I tried on a disabled arena, so it's fixable with a sync.
I only needed rm -r /usr/lib/node_modules/npm though.
So, I should try again, I thought, this time installing npmlog alongside the new version of npm. That should fix the new version, right?
# npm i -g npm npmlog
npm ERR! path /usr/lib/node_modules/npm/node_modules/libnpx/node_modules/yargs/node_modules/cliui/node_modules/strip-ansi/node_modules/ansi-regex
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/npm/node_modules/libnpx/node_modules/yargs/node_modules/cliui/node_modules/strip-ansi/node_modules/ansi-regex' -> '/usr/lib/node_modules/npmlog/node_modules/ansi-regex'
npm ERR! enoent This is related to npm not being able to find a file.
 
Upgrading npm has literally never worked for me
I'd stick to the version in Fedora's repos if possible
 
But I can't install anything with it.
 
2:57 PM
I can currently install some things. npm i -g react works, for instance.
 
OK, anything was an exaggeration. It fails for a lot of stuff though.
 
So, essentially, don't use system npm at all.
 
s/system// :P
 
I wish it were that easy.
> npm ERR! This is probably not a problem with npm.
Suuure...
 
3:05 PM
@Dennis what command did you use
 
npm install -g purescript --unsafe-perms
 
that's like the rudest way a program can behave
 
Well, it printed a lot more. That's just the part that is objectively false.
Managed to install pulp and bower with npm, so I can use the prebuilt Purescript binaries.
Pulp requires internet access to compile a Hello World program, so I'll have to see what I can do about that.
 
> requires internet access to compile a Hello World program
ok that's ridiculous
 
 
1 hour later…
4:22 PM
It's an inconvenience for TIO, yes. Every project gets its own copy of the standard library, which has to get fetched from the internet.
 
4:35 PM
@Dennis yay, unnecessary complications, why get your own copy of the standard library if the interpreter isn't there anyway
and...why not copy and paste it?!
 
 
3 hours later…
7:50 PM
 
Wow! Thanks!
 
@Dennis How'd you fix it?
 
8:44 PM
@Pavel cd /usr/lib; npm install purescript is kinda like a global install. The most prominent difference is that it works.
Plus the usual compile test program and save project stuff, so STDLIB doesn't have to be downloaded and compiled when you run something on TIO.
 

« first day (587 days earlier)      last day (1907 days later) »