Post A6fbALGKPS2lz8bI9I by praveen@social.masto.host
(DIR) More posts by praveen@social.masto.host
(DIR) Post #A6fUzbb4jogljfnmwC by selea@social.linux.pizza
2021-04-27T10:07:19Z
0 likes, 0 repeats
apt install npm -yshould'nt have done that
(DIR) Post #A6fV6UvjvHvz5Pkovg by tomasino@tilde.zone
2021-04-27T10:08:29Z
0 likes, 0 repeats
@selea Nope. It really shouldn't even be an option
(DIR) Post #A6fVNL67jWZDVwdr3g by kreyren@freespeech.firedragonstudios.com
2021-04-27T10:11:29Z
1 likes, 0 repeats
@selea apt-get PURGEEEEE npm
(DIR) Post #A6fXhps3EHaiefxcRc by praveen@social.masto.host
2021-04-27T10:37:42Z
0 likes, 0 repeats
@seleaWhy? It should work. If you want a newer version. apt install npm && npm install -g npm. Please report a bug if it did not work for you.
(DIR) Post #A6fYgQuQeOpwu0y4Fk by phoenix@chaos.social
2021-04-27T10:48:38Z
0 likes, 0 repeats
@selea alias npm="echo Don/'t"
(DIR) Post #A6fYsuDHWaDjGKjXSS by iah@fosstodon.org
2021-04-27T10:50:54Z
0 likes, 0 repeats
@selea you should avoid npm at all times :)
(DIR) Post #A6fbALGKPS2lz8bI9I by praveen@social.masto.host
2021-04-27T10:38:50Z
0 likes, 0 repeats
@tomasinoWhy not? If it is not working, please report a bug. It is supposed to work.@selea
(DIR) Post #A6fbALhclxsVLnN5hA by tomasino@tilde.zone
2021-04-27T10:50:11Z
0 likes, 0 repeats
@praveen @selea nodejs.org instructs users to use the nodesource repository or snaps. the apt versions are out of date and can end in name issues with the binary and other npm problems. In the nodesource versions npm is bundled in the nodejs installer.https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
(DIR) Post #A6fbAM3xQvk6T3ovVQ by adnan360@mas.to
2021-04-27T11:13:04Z
0 likes, 0 repeats
@tomasino @praveen @selea I've used repo version for years and it's been fine. Except on Debian stable which is way to behind for my needs. In that case I've used nvm to build from source.The only time old nodejs/npm versions ever caused trouble was when major changes/features were brought into those projects and packages updated to use those features.
(DIR) Post #A6fbAMUXq50fnWG9wm by selea@social.linux.pizza
2021-04-27T11:16:27Z
0 likes, 0 repeats
Well it was more of a joke actually, since it brought in sooooo many additionaly dependecies.@adnan360 @tomasino @praveen
(DIR) Post #A6fids9Fv1b63XJwbA by praveen@social.masto.host
2021-04-27T12:40:11Z
0 likes, 0 repeats
@seleaWell, that is how node projects are, they have lots of dependencies.@adnan360 @tomasino
(DIR) Post #A6fmiaKK0Q6I33016u by praveen@social.masto.host
2021-04-27T12:49:16Z
0 likes, 1 repeats
@adnan360Yes, it used to lag behind upstream versions but we finally updated it for buster. We also provide newer version via stable-backports. Buster has 5.8 and buster-backports has 7.4. Bullseye will have 7.5 and newer versions will be provided via bullseye-backports. I'm part of debian JavaScript team and would be happy to help if it does not work as expected.@tomasino @selea
(DIR) Post #A6ftHXuBbHbiOkpQS8 by adnan360@mas.to
2021-04-27T14:39:25Z
0 likes, 0 repeats
@selea @tomasino @praveen Wait till you cd into a decently large project and run npm install 😅 I don't know who designed this approach of dependency handling. Same dependency of multiple versions are seen on node_modules. Directories and subdirectories worth of deps!And why do I need to store a copy of each one on every project? Doesn't make any sense.At least pnpm tries to be better at this by symlinking. Yarn also has some tricks to make this flatter but still not best.
(DIR) Post #A6g0E9qlHQLubQYfj6 by finlaydag33k@social.linux.pizza
2021-04-27T15:57:16Z
0 likes, 0 repeats
@selea npm is pretty garbage anyways... Yarn all the way!