Install nvm question

Question:
我想請問有沒有能安裝nvm的指令
I would like to ask if there is an instruction to install nvm

I think you can use general instructions to install the nvm command. Replit is like a regular terminal.

2 Likes

Did they mean npm or nvm?

1 Like

Probably nvm, it’s also a command.

I mean nvm
I need install nvm command on replit

But I can’t use
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

You need to run it in the “Shell” tab, not the “Console” tab.

3 Likes


here? Then how do I use the command above to confirm that he has successfully installed

4 Likes

I’ll try adding NVM to replit.

Doxr in the future: yep, I’ve spent like 15 minutes trying to get it (checked nixos for anything feasible, used wget), nothing. It’s much harder than I thought.

If you need to change the Node.js version, go to replit.nix and change the two letters after node js.

Example:

pkgs.nodejs-18_x (which is node.js 18)
to

pkgs.nodejs-19_x

(the newest version of Node.js)

Make sure to “see hidden files”

One thing I forgot to mention is to add the bashrc contents to .config/bashrc

But doesn’t nvm have more functions? For example, display all versions or download and delete

what is the function of this