WhitewaterFoundry / Pengwin

A Linux distro optimized for WSL based on Debian.
Other
1.48k stars 105 forks source link

Unable to install npm #759

Open gellenburg opened 1 year ago

gellenburg commented 1 year ago

Fresh install of Pengwin and I'm unable to install npm. Does anybody have any idea how to fix this?

image

crramirez commented 1 year ago

Hello @gellenburg,

Looks like there is a dependency problem at Debian upstream, and I couldn't find the solution.

I recommend that you install nodejs via pengwin-setup. You'll have better options and more updated packages: image image image

If unsure you can choose LTS then close and start Pengwin again.

gellenburg commented 1 year ago

I was able to get it to install with Ubuntu 22.10 running on WSL though.

But I'll try pengwin-setup.

crramirez commented 1 year ago

And please tell me how is going

dgiglio commented 1 year ago

(https://user-images.githubusercontent.com/8397379/203416590-d6b941cb-2068-42d8-8749-5f2976ecc28a.png)

If unsure you can choose LTS then close and start Pengwin again.

Hello @crramirez , It's not clear to me what's the difference among NVERMAN, NVM and the classical NODEJS installation. Thanks in advance.

crramirez commented 1 year ago

Hello @dgiglio,

NVERMAN and NVM are version managers. They allow to manage multiple NodeJS versions and switch among them. Also, it is the best way to have them updated.

NVERMAN: https://github.com/tj/n NVM: https://github.com/nvm-sh/nvm

Recommended if you are using NodeJS in development.

The other two options install NodeJS via package manager. You can have one once at time. They are installed from the NodeSource (https://nodesource.com/) repositories. So, they are more current than the one in the Debian repository that Pengwin is based on.

Recommended if you need node as a dependency but no developing directly with it.

Hope it helps,

Regards, Carlos