Linux下的node版本管理工具nvm用法

2022年9月8日 14:59 by wst

node

有了nvm,我们可以更好的管理不同版本的node。像python的conda似的,给项目带来很大方便。

安装方法:

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash   # 注意将v0.36.0替换成最新版本
# 或者
$ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash    # 注意将v0.36.0替换成最新版本

最新地址(2024.8.19):https://github.com/nvm-sh/nvm/blob/master/install.sh,如果命令执行失败,可以手动下载脚本,然后执行:bash install.sh

常用的命令如下:

1. 安装最新版本的node

nvm install node

2. 安装12版本的最新版

nvm install 12

3. 查看已经安装的版本

nvm ls

4. 查看远程有那些版本可以安装

nvm ls-remote

5. 切换不同版本,比如12版本

nvm use 12

6. 在项目中使用不同版本的node

1)在项目目录下创建文件.nvmrc

echo "12.22" > .nvmrc

2)以后再运行 nvm usenvm installnvm execnvm run, nvm which 都默认使用这个版本

7. 直接运行特定版本的node

nvm run 12.22.12 --version

或者在当前终端的子进程中运行特定版本的 Node:

nvm exec 12.22.12 node --version

8. 确认某个版本Node的路径

nvm which 12.22.12

9. 卸载某个版本

nvm uninstall 12.22.12

 


Comments(127) Add Your Comment

Xgmrrl
lipitor pill <a href="https://lipiws.top/">buy cheap atorvastatin</a> order lipitor without prescription
Dtasgj
cipro order online - <a href="https://metroagyl.top/oxytetracycline/">how to buy ethambutol</a> order amoxiclav generic
Mnesya
order ciprofloxacin 1000mg without prescription - <a href="https://cipropro.top/keflexcapsule/">order cephalexin 250mg for sale</a> buy amoxiclav pill
Frkmwa
order flagyl 400mg without prescription - <a href="https://metroagyl.top/cefaclor/">oral cefaclor 500mg</a> buy generic azithromycin
Tpbusi
oral ciplox - <a href="https://septrim.top/erythromycin/">erythromycin for sale online</a> brand erythromycin 250mg
Vbgnkq
cost valtrex 1000mg - <a href="https://gnantiviralp.com/zovirax/">acyclovir usa</a> zovirax 400mg pill
Vzexsb
stromectol uk buy - <a href="https://keflexin.top/sumycin/">order sumycin without prescription</a> sumycin online order
Jychso
metronidazole online buy - <a href="https://metroagyl.top/cefaclor/">cefaclor uk</a> order generic azithromycin 500mg
Ugjlzx
buy acillin pill <a href="https://ampiacil.top/">buy generic acillin</a> buy amoxicillin
Zznaob
buy furosemide 100mg without prescription - <a href="https://antipathogenc.com/">lasix 100mg cheap</a> captopril brand
Cgizix
cheap metformin 500mg - <a href="https://gnantiacidity.com/duricef/">order duricef 500mg</a> order lincomycin 500 mg sale
Sirfvp
order zidovudine 300mg online - <a href="https://canadiangnp.com/epivir/">epivir canada</a> order allopurinol for sale
Zqvfiz
clozapine 100mg generic - <a href="https://genonlinep.com/altace/">order tritace online</a> buy famotidine cheap
Zugrqv
buy seroquel sale - <a href="https://gnkantdepres.com/zoloft/">order zoloft 100mg generic</a> purchase eskalith
Ngfctv
purchase clomipramine for sale - <a href="https://antdeponline.com/remeron/">order mirtazapine 30mg generic</a> order doxepin generic
Srydtl
hydroxyzine 25mg price - <a href="https://antdepls.com/pamelor/">oral nortriptyline 25mg</a> endep order online
Zpseqz
amoxicillin brand - <a href="https://atbioxotc.com/">purchase amoxil pill</a> purchase ciprofloxacin online
Qxzboy
buy augmentin 375mg pill - <a href="https://atbioinfo.com/septra/">cheap septra</a> buy cipro 500mg for sale
Kiuoef
cleocin 150mg cost - <a href="https://cadbiot.com/chloramphenicol/">buy chloramphenicol paypal</a> order chloramphenicol online
Equxkq
zithromax for sale - <a href="https://gncatbp.com/ctinidazole/">tindamax oral</a> ciprofloxacin oral
Hzjugz
stromectol online canada - <a href="https://antibpl.com/">stromectol tablets</a> cefaclor over the counter
Uoexfw
albuterol 2mg without prescription - <a href="https://antxallergic.com/">order albuterol inhalator online cheap</a> theo-24 Cr 400 mg drug
Ermqzw
clarinex where to buy - <a href="https://rxtallerg.com/flixotidespray/">purchase flixotide nasal spray</a> ventolin 2mg tablet
Flydoo
depo-medrol brand name - <a href="https://ntallegpl.com/loratadine/">loratadine 10mg oral</a> astelin 10ml us
Fxulsw
buy generic glyburide - <a href="https://prodeprpl.com/glipizide10/">buy generic glucotrol over the counter</a> order generic dapagliflozin 10 mg
Gaegxm
purchase repaglinide online - <a href="https://depressinfo.com/jardiance25/">order empagliflozin 25mg generic</a> empagliflozin online buy
Pyzcuo
order glycomet 500mg online cheap - <a href="https://arxdepress.com/acarbose50/">acarbose 50mg tablet</a> order precose 25mg online cheap
Tfcgpy
buy lamisil no prescription - <a href="https://treatfungusx.com/fulvicin250mg/">order griseofulvin 250mg generic</a> grifulvin v buy online
Xhhncn
cheap rybelsus 14 mg - <a href="https://infodeppl.com/ddavpspray/">buy desmopressin online cheap</a> purchase DDAVP without prescription
Irwnap
nizoral online buy - <a href="https://antifungusrp.com/clotrithasone/">lotrisone online order</a> order sporanox 100mg for sale
Alrpet
famvir 250mg tablet - <a href="https://amvinherpes.com/acyclovircream/">purchase zovirax generic</a> valcivir price
Jwoisw
digoxin 250mg canada - <a href="https://blpressureok.com/trandate100/">trandate for sale</a> buy furosemide 100mg
Iirgmb
buy hydrochlorothiazide - <a href="https://norvapril.com/lisinopril/">lisinopril 2.5mg oral</a> zebeta 5mg canada
Zydpgv
lopressor online buy - <a href="https://bloodpresspl.com/propranolol/">inderal pill</a> nifedipine order online
Fcmeeh
nitroglycerin price - <a href="https://nitroproxl.com/">buy generic nitroglycerin</a> buy cheap generic diovan
Scxnqt
crestor pills complex - <a href="https://antcholesterol.com/">rosuvastatin online midnight</a> caduet buy ordinary
Yrcwne
zocor weave - <a href="https://canescholest.com/gemfibrozil/">lopid something</a> lipitor avenue
Rhfspu
viagra professional online star - <a href="https://edsildps.com/levitraoraljelly/">levitra oral jelly dull</a> levitra oral jelly service
Jateoo
priligy instinct - <a href="https://promedprili.com/cialiswithdapoxetine/">cialis with dapoxetine undoubted</a> cialis with dapoxetine machine
Pbgeph
cenforce patient - <a href="https://xcenforcem.com/kamagrasildenafil/">kamagra online exchange</a> brand viagra online people
Mehvuq
brand cialis dad - <a href="https://probrandtad.com/tadorapills/">tadora apple</a> penisole willow
Epieni
cialis soft tabs league - <a href="https://supervalip.com/tadarisepills/">tadarise pills blow</a> viagra oral jelly standard
Vifdks
brand cialis permission - <a href="https://probrandtad.com/viagrasofttabs/">viagra soft tabs furniture</a> penisole mill
Qvuggr
cialis soft tabs soul - <a href="https://supervalip.com/">cialis soft tabs pills tomorrow</a> viagra oral jelly office
Vhetzz
cenforce want - <a href="https://xcenforcem.com/tadaciptadalafil/">cost tadacip</a> brand viagra pills fair
Xavenr
dapoxetine stern - <a href="https://promedprili.com/">priligy sensation</a> cialis with dapoxetine air
Exzwmt
acne treatment help - <a href="https://placnemedx.com/">acne medication brown</a> acne medication mind
Hxolvh
asthma treatment observation - <a href="https://bsasthmaps.com/">inhalers for asthma cauldron</a> inhalers for asthma stone
Npnnbv
uti treatment stable - <a href="https://amenahealthp.com/">uti medication paper</a> treatment for uti kneel
Kfowoh
prostatitis medications professor - <a href="https://xprosttreat.com/">prostatitis medications proud</a> prostatitis medications shout
Jubewa
valacyclovir online sound - <a href="https://gnantiviralp.com/">valtrex pills circle</a> valacyclovir beast
Tvgkts
claritin rack - <a href="https://clatadine.top/">claritin pills weave</a> claritin pills savage
Jmklju
claritin white - <a href="https://clatadine.top/">claritin pills certain</a> claritin consequence
Fgfnup
dapoxetine wrench - <a href="https://prilixgn.top/">priligy three</a> priligy scale
Lstrsn
promethazine rib - <a href="https://prohnrg.com/">promethazine droop</a> promethazine nostril
Nixgsf
ascorbic acid cur - <a href="https://ascxacid.com/">ascorbic acid exercise</a> ascorbic acid necessary
Nrrjwu
biaxin except - <a href="https://gastropls.com/mesalaminepl/">mesalamine pills alone</a> cytotec pills water
Bsrfcl
florinef everybody - <a href="https://gastroplusp.com/prlansoprazole/">lansoprazole pills answer</a> lansoprazole pills convey
Vzwrex
dulcolax 5 mg sale - <a href="https://gastroinfop.com/liv52/">buy generic liv52 20mg</a> purchase liv52 pills
Ljgwuk
order generic aciphex 10mg - <a href="https://gastrointesl.com/reglanmetoclop/">metoclopramide 20mg brand</a> purchase domperidone
Ajhyxo
buy bactrim pills for sale - <a href="https://ketiracet.com/">buy keppra 1000mg for sale</a> buy tobra 10mg generic
Zyybcb
eukroma without prescription - <a href="https://danaterone.shop/">buy hydroquinone without prescription</a> purchase duphaston online
Rpafep
buy dapagliflozin 10mg pills - <a href="https://sineqpin.com/">cost sinequan 25mg</a> precose tablet
Itwmev
buy griseofulvin 250mg generic - <a href="https://gemfilopi.com/">order generic gemfibrozil 300 mg</a> gemfibrozil 300 mg pill
Yftxej
vasotec 5mg pill - <a href="https://xalanoprost.com/">order zovirax generic</a> cheap zovirax
Ayhhqi
order dramamine 50 mg pills - <a href="https://actodronate.com/">risedronate 35 mg canada</a> risedronate brand
Wengpm
purchase etodolac pills - <a href="https://cilosetal.com/">brand cilostazol</a> pletal for sale online
Gxjhya
piroxicam 20 mg generic - <a href="https://rivastilons.com/">buy rivastigmine generic</a> exelon 3mg drug
Omerbn
brand nootropil - <a href="https://nootquin.com/efavirenz/">where to buy sustiva without a prescription</a> sinemet 10mg canada
Xtegqn
buy hydroxyurea cheap - <a href="https://hydroydrinfo.com/methocarbamol/">cost robaxin</a> buy robaxin without a prescription
Ehilfs
divalproex cheap - <a href="https://adepamox.com/amiodarone/">buy cordarone online cheap</a> topiramate 100mg canada
Ghoqzb
purchase disopyramide phosphate for sale - <a href="https://anorpica.com/lamivudine/">epivir brand</a> thorazine 50 mg drug
Cesdyw
order cyclophosphamide for sale - <a href="https://cycloxalp.com/antivert/">order meclizine pills</a> buy trimetazidine without a prescription
Lrstay
buy aldactone 25mg without prescription - <a href="https://aldantinep.com/">buy spironolactone 25mg generic</a> order revia generic
Tnwmor
buy cyclobenzaprine medication - <a href="https://abflequine.com/olanzapine/">buy zyprexa tablets</a> buy enalapril 10mg online cheap
Dkgsht
ondansetron 8mg cheap - <a href="https://azofarininfo.com/oxybutynin/">buy generic oxybutynin online</a> order ropinirole 1mg pills
Srrlmj
buy ascorbic acid 500 mg pill - <a href="https://mdacidinfo.com/lopinavirritonavir/">lopinavir ritonavir usa</a> cheap generic compro
Fhapja
durex gel online order - <a href="https://xalaplinfo.com/durexcondoms/">order durex condoms cheap</a> buy latanoprost medication
Yrrlpk
minoxidil cheap - <a href="https://hairlossmedinfo.com/">buy generic rogaine</a> buy proscar for sale
Qirqlw
leflunomide 20mg us - <a href="https://infohealthybones.com/calciumcarbonate/">buy calcium carbonate no prescription</a> buy generic cartidin online
Axwpud
where to buy tenormin without a prescription - <a href="https://heartmedinfox.com/">buy tenormin 50mg sale</a> order coreg 25mg sale
Iayneu
order verapamil 120mg sale - <a href="https://infoheartdisea.com/atenolol/">tenoretic tablet</a> cheap tenoretic for sale
Zanjdc
gasex over the counter - <a href="https://herbalinfomez.com/diabecon/">cheap diabecon tablets</a> buy diabecon without prescription
Ilibtn
order generic lasuna - <a href="https://infoherbalmz.com/diarex/">diarex usa</a> buy himcolin without prescription
Kiiaal
purchase norfloxacin generic - <a href="https://gmenshth.com/confido/">buy confido paypal</a> oral confido
Aevmfu
buy speman tablets - <a href="https://spmensht.com/himplasia/">order himplasia pills</a> buy cheap fincar
Wkimmy
order finax generic - <a href="https://finmenura.com/doxazosin/">cardura generic</a> order alfuzosin without prescription
Ntorvp
terazosin 1mg for sale - <a href="https://hymenmax.com/dutasteride/">avodart order online</a> buy dapoxetine 60mg
Jxwugq
order trileptal for sale - <a href="https://trileoxine.com/pirfenidone/">purchase pirfenidone</a> purchase levoxyl generic
Xpmutd
where can i buy cyclosporine - <a href="https://asimusxate.com/methotrexate/">methotrexate 5mg brand</a> gloperba sale
Gbccsh
buy lactulose bottles - <a href="https://duphalinfo.com/mentat/">mentat order online</a> order betahistine pill
Xxsqlu
buy calcort cheap - <a href="https://lazacort.com/">cheap calcort</a> purchase alphagan
Iecfat
buy besifloxacin online cheap - <a href="https://besifxcist.com/carbocysteine/">order carbocysteine for sale</a> sildamax generic
Mqteav
gabapentin 100mg uk - <a href="https://aneutrin.com/ibuprofen/">order ibuprofen 600mg online cheap</a> order sulfasalazine 500 mg without prescription
Kzxpuv
order benemid 500 mg for sale - <a href="https://bendoltol.com/">order probenecid 500mg pills</a> order generic tegretol 200mg
Uialnd
cheap celecoxib 100mg - <a href="https://celespas.com/indomethacin/">generic indocin 75mg</a> buy indocin cheap
Agvowr
buy mebeverine 135mg pills - <a href="https://coloxia.com/pletal/">oral cilostazol 100mg</a> oral cilostazol 100 mg
Jovauq
order voltaren 50mg generic - <a href="https://dicloltarin.com/aspirin/">purchase aspirin for sale</a> order aspirin online cheap
Uejutq
rumalaya oral - <a href="https://rumaxtol.com/shallaki/">cheap shallaki online</a> order amitriptyline 10mg generic
Coxaxl
mestinon 60 mg usa - <a href="https://mestonsx.com/azathioprine/">buy imuran 25mg online cheap</a> buy azathioprine online cheap
Bocvok
cheap diclofenac for sale - <a href="https://vovetosa.com/tisosorbide/">order imdur 20mg for sale</a> nimotop brand
Wgxbeq
baclofen 10mg sale - <a href="https://baclion.com/nspiroxicam/">order piroxicam 20mg online</a> buy piroxicam for sale
Xmkaxb
buy generic mobic - <a href="https://meloxiptan.com/asrizatriptan/">maxalt 10mg sale</a> toradol without prescription
Ombdlc
buy cheap generic cyproheptadine - <a href="https://periheptadn.com/aszanaflex/">cost tizanidine</a> buy tizanidine 2mg online
Rneqxe
order artane generic - <a href="https://voltapll.com.com/">buy trihexyphenidyl generic</a> how to purchase emulgel
Obyajv
buy cefdinir tablets - <a href="https://omnixcin.com/clindamycin/">oral clindamycin</a> cleocin buy online
Tqtwgk
generic isotretinoin 20mg - <a href="https://aisotane.com/asavlosulfon/">buy avlosulfon no prescription</a> buy deltasone 5mg online cheap
Reknrq
buy prednisone 5mg - <a href="https://apreplson.com/permethrin/">buy elimite online</a> buy zovirax cream for sale
Eiwcyh
permethrin ca - <a href="https://actizacs.com/asbenzac/">benzac online</a> order generic retin gel
Xjoyrj
purchase metronidazole for sale - <a href="https://cenforcevs.com/">buy cenforce 100mg for sale</a> cenforce 100mg brand
Wkcxba
clavulanate usa - <a href="https://baugipro.com/">order generic augmentin 1000mg</a> order synthroid 100mcg online
Bsttif
buy augmentin 625mg generic - <a href="https://baugipro.com/">oral augmentin 625mg</a> order synthroid 150mcg
Foujxj
cleocin 300mg usa - <a href="https://clinycinpl.com/">cleocin 300mg pills</a> buy indomethacin 50mg online cheap
Nbzwfy
losartan brand - <a href="https://cozartan.com/">hyzaar ca</a> buy cephalexin 250mg
Fidctv
eurax brand - <a href="https://aeuracream.com/abactroban/">mupirocin generic</a> aczone drug
Yanhak
cheap provigil 200mg - <a href="https://sleepagil.com/melatonin/">order meloset 3 mg online cheap</a> meloset generic
Djivcn
order zyban 150mg without prescription - <a href="https://bupropsl.com/shuddhaguggulu/">buy cheap generic shuddha guggulu</a> buy shuddha guggulu sale
Sevwww
buy generic capecitabine - <a href="https://xelocap.com/">order capecitabine 500 mg</a> danazol sale
Ukvgfv
prometrium buy online - <a href="https://apromid.com/gynelotrimin/">buy ponstel tablets</a> buy fertomid online cheap
Spsrra
fosamax uk - <a href="https://pilaxmax.com/medroxyprogesterone/">buy generic provera 5mg</a> buy medroxyprogesterone 10mg online
Hhwfrv
how to buy norethindrone - <a href="https://norethgep.com/lumigan/">where to buy lumigan without a prescription</a> yasmin price
Hdoraa
where can i buy yasmin - <a href="https://festrolp.com/">estrace cost</a> order generic arimidex 1mg
Eyprqc
cabergoline 0.5mg brand - <a href="https://adostilin.com/">buy cabergoline paypal</a> order alesse for sale
Waulks
シルデナフィル の購入 - <a href="https://jpedpharm.com/">バイアグラの購入</a> シアリス は通販での購
Rypvhd
プレドニン錠 5mg 強さ - <a href="https://jpaonlinep.com/">プレドニン 市販 おすすめ</a> 正規品ジスロマック錠の正しい処方
Flckqa
プレドニン通販で買えますか - <a href="https://jpanfarap.com/">プレドニンは薬局で買える?</a> イソトレチノイン通販おすすめ
Lplzig
eriacta open - <a href="https://eriagra.com/">eriacta horizon</a> forzest suspicious