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.
Did they mean npm
or nvm
?
Probably nvm
, it’s also a command.
I mean nvm
I need install nvm command on replit
You need to run it in the “Shell” tab, not the “Console” tab.
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