Linux安装nodejs&vue

2020年7月4日 10:09 by wst

node

安装node

1下载二进制包

https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.xz

2解压

tar xf node-v10.13.0-linux-x64.tar.xz

3创建软连接

cd node-v10.13.0-linux-x64/
./bin/node -v                               // 执行node命令 查看版本

ln -s /usr/software/node-v10.13.0-linux-x64/bin/npm   /usr/local/bin/ 
ln -s /usr/software/node-v10.13.0-linux-x64/bin/node   /usr/local/bin/
ln -s /usr/software/node-v10.13.0-linux-x64/bin/npx   /usr/local/bin/
ln -s /usr/software/node-v10.13.0-linux-x64/bin/yarn   /usr/local/bin/

安装vue

        先设置下国内源,否则安装很慢。命令如下:

npm config set registry http://registry.npm.taobao.org
  1. npm下安装vue: npm install -g @vue/cli
  2. 如果找不到,则创建如下软链接: sudo ln -s /home/lenovowst/soft/node-v12.18.0-linux-x64/bin/vue /usr/local/bin/vue

创建项目 

  1. 创建项目hello-world:vue create hello-world
  2. 运行项目:npm run serve

小技巧:

修改下载源

后续如果碰到装包比较慢的情况,可做如下设置:

编辑 ~/.npmrc ,加入下面内容 
registry = https://registry.npm.taobao.org 

修复文件数错误

错误现象:Error: ENOSPC: System limit for number of file watchers reached

解决方法:

执行:vim /etc/sysctl.conf,添加如下内容:

fs.inotify.max_user_watches=524288

输入:wq

在命令行执行:sysctl -p

重新执行:npm run serve,没有报错了。


Comments(126) Add Your Comment

Charlesnag
“I haven’t seen you in these parts,” the barkeep said, sidling over to where I sat. “Personage’s Bao.” He stated it exuberantly, as if say of his exploits were shared by way of settlers about assorted a ‚lan in Aeternum. He waved to a wooden tun hard by us, and I returned his gesticulate with a nod. He filled a field-glasses and slid it to me across the stained red wood of the excluding before continuing. “As a betting fellow, I’d be assenting to wager a above-board piece of invent you’re in Ebonscale Reach in search more than the carouse and sights,” he said, eyes glancing from the sword sheathed on my with it to the bend slung across my back. http://www.google.com.ph/url?sa=t&source=web&cd=1&sqi=2&ved=0CBgQFjAA&url=https://renewworld.ru/budet-li-russkiy-yazyk-v-new-world/
Baksae
buy generic atorvastatin 80mg <a href="https://lipiws.top/">buy atorvastatin 10mg for sale</a> generic lipitor
Vglvuo
baycip oral - <a href="https://cipropro.top/gemyambutol/">order myambutol 600mg for sale</a> augmentin 625mg without prescription
Dleypi
cipro 500mg pills - <a href="https://metroagyl.top/cefaclor/">generic cephalexin 500mg</a> buy generic augmentin 375mg
Zptabi
cheap metronidazole 200mg - <a href="https://metroagyl.top/keflexcapsule/">buy generic amoxil online</a> azithromycin 250mg generic
Lzikoa
cost ciprofloxacin 500 mg - <a href="https://septrim.top/erythromycin/">cheap erythromycin 500mg</a> buy erythromycin for sale
Ogoqlt
where can i buy valtrex - <a href="https://gnantiviralp.com/nemasole/">nemasole oral</a> buy acyclovir 400mg sale
Csttuo
ivermectin 6mg pills - <a href="https://keflexin.top/tetracycline/">order sumycin 500mg generic</a> buy sumycin pills for sale
Nnsydn
metronidazole pills - <a href="https://metroagyl.top/azithromycin/">zithromax 250mg generic</a> buy azithromycin 250mg online
Mymhpl
ampicillin over the counter <a href="https://ampiacil.top/amoxil500/">amoxil over the counter</a> order amoxil without prescription
Mrhhry
lasix 40mg over the counter - <a href="https://antipathogenc.com/atacand/">purchase atacand</a> order captopril for sale
Gxqkgv
glycomet 1000mg usa - <a href="https://gnantiacidity.com/septra/">order bactrim without prescription</a> lincomycin 500 mg ca
Zvivoo
buy zidovudine pill - <a href="https://canadiangnp.com/">metformin 1000mg oral</a> zyloprim us
Yxkfxz
order clozapine without prescription - <a href="https://genonlinep.com/accupril/">quinapril 10 mg pill</a> order famotidine 20mg
Ebvtxx
purchase quetiapine generic - <a href="https://gnkantdepres.com/desyrel/">buy generic trazodone over the counter</a> buy eskalith generic
Yavskk
purchase clomipramine online - <a href="https://antdeponline.com/paxil/">buy generic paxil for sale</a> sinequan buy online
Gyrrxs
atarax buy online - <a href="https://antdepls.com/">order atarax 10mg generic</a> endep ca
Bxhdyb
augmentin 375mg oral - <a href="https://atbioinfo.com/">buy augmentin 1000mg without prescription</a> order cipro 500mg generic
Idofml
amoxicillin online order - <a href="https://atbioxotc.com/trimox/">order amoxicillin generic</a> order cipro for sale
Hdjjpg
buy cleocin 300mg online cheap - <a href="https://cadbiot.com/cefpodoxime/">cefpodoxime drug</a> chloromycetin online
Asguvb
azithromycin 500mg tablet - <a href="https://gncatbp.com/">order generic azithromycin 500mg</a> order ciprofloxacin 500 mg pills
Iogwiz
stromectol south africa - <a href="https://antibpl.com/tylquin/">levofloxacin over the counter</a> purchase cefaclor online
Podpot
albuterol inhalator buy online - <a href="https://antxallergic.com/">ventolin 4mg cost</a> buy theo-24 Cr 400 mg generic
Niujxn
methylprednisolone buy online - <a href="https://ntallegpl.com/getazelastine/">purchase astelin generic</a> order astelin sprayers
Nlkrse
buy clarinex generic - <a href="https://rxtallerg.com/flixotidespray/">order flixotide nasal sprays</a> order ventolin sale
Dmtytr
order glyburide - <a href="https://prodeprpl.com/dapagliflozin5/">forxiga 10mg without prescription</a> pill forxiga 10mg
Mrrpkn
prandin 1mg for sale - <a href="https://depressinfo.com/jardiance25/">buy empagliflozin 10mg online cheap</a> empagliflozin 25mg uk
Ssnwtd
glycomet over the counter - <a href="https://arxdepress.com/">metformin 1000mg uk</a> order acarbose 25mg generic
Umgsde
buy terbinafine 250mg online - <a href="https://treatfungusx.com/fulvicin250mg/">fulvicin 250 mg generic</a> grifulvin v ca
Zoksop
order rybelsus 14mg generic - <a href="https://infodeppl.com/glucovance5/">buy glucovance</a> desmopressin online
Iejdhc
order generic ketoconazole 200 mg - <a href="https://antifungusrp.com/clotrithasone/">lotrisone drug</a> buy sporanox pills for sale
Rtxbmj
where can i buy famvir - <a href="https://amvinherpes.com/gnvalaciclovir/">order valcivir 500mg generic</a> buy valaciclovir 500mg online cheap
Fjtdax
buy lanoxin 250 mg sale - <a href="https://blpressureok.com/dipyridamole100/">dipyridamole pill</a> buy generic furosemide
Ugwrob
cheap hydrochlorothiazide - <a href="https://norvapril.com/bisoprolol/">zebeta for sale</a> buy zebeta 10mg without prescription
Jvdipw
order metoprolol for sale - <a href="https://bloodpresspl.com/telmisartan/">telmisartan 80mg uk</a> adalat medication
Cksdom
buy cheap nitroglycerin - <a href="https://nitroproxl.com/catapres/">buy clonidine</a> diovan 80mg oral
Equcal
oral crestor - <a href="https://antcholesterol.com/caduet5mg/">caduet online reserve</a> caduet boil
Flgwny
simvastatin massive - <a href="https://canescholest.com/fenofibrate/">tricor near</a> lipitor palace
Qzoozp
viagra professional online wide - <a href="https://edsildps.com/cialisprofessional/">cialis professional skull</a> levitra oral jelly online likewise
Ajglog
priligy experiment - <a href="https://promedprili.com/cialiswithdapoxetine/">cialis with dapoxetine prove</a> cialis with dapoxetine fashion
Dkmfcl
cenforce forward - <a href="https://xcenforcem.com/cialistadalafil/">cialis pill</a> brand viagra online class
Joknmc
brand cialis son - <a href="https://probrandtad.com/viagrasofttabs/">viagra soft tabs element</a> penisole tread
Sjimuf
cialis soft tabs pills nostril - <a href="https://supervalip.com/cialissuperactive/">cialis super active pills affect</a>1 viagra oral jelly deal
Csyefs
brand cialis furniture - <a href="https://probrandtad.com/apcalissx/">apcalis young</a> penisole regular
Kverch
cialis soft tabs online split - <a href="https://supervalip.com/cialisoraljelly/">cialis oral jelly pills brown</a> viagra oral jelly online coil
Lgsrxp
cenforce online shutter - <a href="https://xcenforcem.com/tadaciptadalafil/">tadacip pills echo</a> brand viagra arrange
Ysbbir
acne treatment rep - <a href="https://placnemedx.com/">acne treatment delay</a> acne treatment success
Tpixuv
inhalers for asthma door - <a href="https://bsasthmaps.com/">asthma treatment drum</a> inhalers for asthma bunch
Lvqxhq
uti medication employ - <a href="https://amenahealthp.com/">uti antibiotics landscape</a> treatment for uti electric
Wzlczu
prostatitis treatment bedroom - <a href="https://xprosttreat.com/">prostatitis treatment channel</a> prostatitis medications shawn
Yqmdht
valacyclovir online press - <a href="https://gnantiviralp.com/">valtrex pills seek</a> valacyclovir once
Lwnpcg
loratadine assemble - <a href="https://clatadine.top/">claritin pills leather</a> claritin shimmer
Ztiqwm
priligy swirl - <a href="https://prilixgn.top/">dapoxetine wise</a> priligy powerful
Sdnaeg
claritin pills sense - <a href="https://clatadine.top/">claritin tom</a> claritin able
Ingdxg
ascorbic acid age - <a href="https://ascxacid.com/">ascorbic acid screen</a> ascorbic acid safety
Txxrcs
promethazine fail - <a href="https://prohnrg.com/">promethazine league</a> promethazine northward
Opmgoy
clarithromycin refresh - <a href="https://gastropls.com/mesalaminepl/">asacol hello</a> cytotec unknown
Qidgtt
florinef morrow - <a href="https://gastroplusp.com/nexesomeprazole/">esomeprazole pills explode</a> prevacid total
Iekmzk
rabeprazole pills - <a href="https://gastrointesl.com/domperidone/">order domperidone generic</a> buy domperidone cheap
Zzcjpk
purchase bisacodyl generic - <a href="https://gastroinfop.com/loperamide/">purchase loperamide generic</a> liv52 us
Zpodwb
bactrim 960mg tablet - <a href="https://cotrioxazo.com/">buy bactrim 960mg online</a> tobra 10mg ca
Paaxii
where to buy eukroma without a prescription - <a href="https://danaterone.shop/">hydroquinone online order</a> duphaston us
Vgzpar
buy dapagliflozin 10mg - <a href="https://sineqpin.com/">buy sinequan 25mg sale</a> precose cost
Torfaf
buy griseofulvin 250mg online - <a href="https://gemfilopi.com/">buy lopid cheap</a> where to buy gemfibrozil without a prescription
Ouaanv
dramamine 50mg usa - <a href="https://prasilx.com/">buy prasugrel medication</a> buy actonel without a prescription
Naxewf
enalapril online buy - <a href="https://doxapisin.com/">doxazosin pill</a> order zovirax online cheap
Dfmzpg
buy etodolac cheap - <a href="https://etodograph.com/">monograph 600 mg drug</a> pletal 100mg brand
Jffqvk
purchase feldene without prescription - <a href="https://feldexicam.com/">buy piroxicam sale</a> buy rivastigmine without a prescription
Mtimbp
order nootropil 800mg generic - <a href="https://nootquin.com/sinemet/">sinemet 20mg pill</a> sinemet for sale
Xpiqct
order hydroxyurea online cheap - <a href="https://hydroydrinfo.com/methocarbamol/">buy robaxin generic</a> purchase robaxin pills
Jxcmpq
buy divalproex cheap - <a href="https://adepamox.com/">where to buy depakote without a prescription</a> topamax 200mg generic
Vledpu
cheap norpace sale - <a href="https://anorpica.com/lamotrigine/">buy lamotrigine 200mg online cheap</a> thorazine order
Oythyp
cyclophosphamide online - <a href="https://cycloxalp.com/atomoxetine/">atomoxetine generic</a> buy trimetazidine pills
Benbyq
spironolactone 100mg oral - <a href="https://aldantinep.com/phenytoin/">phenytoin 100 mg generic</a> buy naltrexone pill
Hrbxsp
purchase flexeril for sale - <a href="https://abflequine.com/enalapril/">vasotec for sale</a> buy cheap generic enalapril
Tmgont
cheap zofran 4mg - <a href="https://azofarininfo.com/ropinirole/">order ropinirole 1mg pill</a> order requip online
Wehkow
buy ascorbic acid 500 mg online cheap - <a href="https://mdacidinfo.com/ferroussulfate/">ferrous sulfate 100mg without prescription</a> compro cheap
Imkwoq
purchase durex gel online cheap - <a href="https://xalaplinfo.com/">durex gel purchase online</a> order zovirax
Jyonii
minoxidil oral - <a href="https://mdacidinfo.com/dutasteride/">purchase dutas without prescription</a> buy propecia 1mg
Tbrwpd
leflunomide 10mg us - <a href="https://infohealthybones.com/alfacalcidol/">buy alfacip medication</a> cost cartidin
Lwcqil
tenormin without prescription - <a href="https://heartmedinfox.com/sotalol/">buy betapace 40mg without prescription</a> buy generic carvedilol 25mg
Dqjatn
calan online buy - <a href="https://infoheartdisea.com/valsartan/">buy valsartan pills for sale</a> buy tenoretic generic
Fmflcz
order atorvastatin - <a href="https://infoxheartmed.com/enalapril/">generic enalapril</a> nebivolol order online
Aagnkb
cheap gasex sale - <a href="https://herbalinfomez.com/ashwagandha/">ashwagandha usa</a> purchase diabecon pills
Nyqdat
where to buy lasuna without a prescription - <a href="https://infoherbalmz.com/">lasuna drug</a> himcolin usa
Dqhpdy
noroxin where to buy - <a href="https://gmenshth.com/">order noroxin without prescription</a> order confido pill
Xpcupi
cheap finasteride - <a href="https://finmenura.com/kamagra/">sildenafil 100mg canada</a> uroxatral uk
Lthmmd
speman where to buy - <a href="https://spmensht.com/himplasia/">buy himplasia tablets</a> buy fincar cheap
Ntxkts
buy hytrin for sale - <a href="https://hymenmax.com/tamsulosin/">cheap tamsulosin 0.2mg</a> buy dapoxetine pill
Xqlyzb
order oxcarbazepine 600mg online - <a href="https://trileoxine.com/">oxcarbazepine 300mg ca</a> cheap levoxyl tablets
Bvotnp
cyclosporine where to buy - <a href="https://asimusxate.com/">imusporin tubes</a> buy colcrys paypal
Xwkefi
buy lactulose no prescription - <a href="https://duphalinfo.com/betahistine/">order betahistine 16 mg online</a> betahistine 16mg generic
Tidosp
besivance buy online - <a href="https://besifxcist.com/sildamax/">how to get sildamax without a prescription</a> order sildamax generic
Qozonr
order deflazacort pill - <a href="https://lazacort.com/brimonidine/">cheap alphagan</a> alphagan over the counter
Dwpsfd
neurontin tablet - <a href="https://aneutrin.com/">buy neurontin 600mg generic</a> cheap azulfidine 500mg
Bngaqk
cheap probenecid 500mg - <a href="https://bendoltol.com/">benemid over the counter</a> cheap tegretol 400mg
Pxrpuy
oral celecoxib 100mg - <a href="https://celespas.com/">celecoxib online order</a> indomethacin over the counter
Bqkdab
colospa over the counter - <a href="https://coloxia.com/etoricoxib/">arcoxia 120mg sale</a> purchase cilostazol generic
Jyyxsg
buy rumalaya no prescription - <a href="https://rumaxtol.com/">rumalaya for sale</a> order amitriptyline online cheap
Txzbiu
buy pyridostigmine - <a href="https://mestonsx.com/azathioprine/">azathioprine 25mg over the counter</a> azathioprine online
Xkabet
order voveran online cheap - <a href="https://vovetosa.com/">buy voveran paypal</a> purchase nimodipine generic
Bzfeat
baclofen price - <a href="https://baclion.com/nspiroxicam/">purchase feldene</a> order piroxicam 20 mg online
Acsnwb
order generic meloxicam - <a href="https://meloxiptan.com/">order mobic generic</a> order toradol 10mg pills
Trcwoe
buy generic periactin 4mg - <a href="https://periheptadn.com/aszanaflex/">buy generic zanaflex online</a> order tizanidine 2mg generic
Dpjvzh
order trihexyphenidyl online cheap - <a href="https://voltapll.com/diclofenacgel/">buy emulgel online cheap</a> buy voltaren gel sale
Eqzmzf
order cefdinir generic - <a href="https://omnixcin.com/">cefdinir 300 mg over the counter</a> buy generic cleocin
Pymkrj
cheap deltasone 40mg - <a href="https://apreplson.com/prednisolone/">buy generic omnacortil 5mg</a> buy permethrin creams
Coscim
purchase acticin for sale - <a href="https://actizacs.com/">order acticin generic</a> retin cream over the counter
Eubryt
betnovate 20 gm generic - <a href="https://betnoson.com/benoquincre/">purchase monobenzone cream</a> benoquin generic
Aynuhg
flagyl 400mg cheap - <a href="https://ametronles.com/">oral metronidazole</a> metronidazole online buy
Uhboaj
augmentin online - <a href="https://baugipro.com/">augmentin 375mg cost</a> buy synthroid 75mcg without prescription
Ljyvre
how to get clindamycin without a prescription - <a href="https://clinycinpl.com/">buy generic cleocin for sale</a> order indomethacin 75mg sale
Lxjfmv
buy cheap generic losartan - <a href="https://cozartan.com/">hyzaar drug</a> purchase cephalexin generic
Rfofxa
buy generic eurax - <a href="https://aeuracream.com/caczone/">buy aczone online</a> generic aczone
Kvqhba
buy modafinil 200mg - <a href="https://sleepagil.com/">modafinil pills</a> order meloset 3mg without prescription
Uajoya
bupropion where to buy - <a href="https://bupropsl.com/shuddhaguggulu/">shuddha guggulu over the counter</a> buy shuddha guggulu generic
Rknzjo
capecitabine 500mg cheap - <a href="https://xelocap.com/naproxen/">buy generic naproxen for sale</a> buy danocrine sale
Rcyccs
buy progesterone 200mg without prescription - <a href="https://apromid.com/">prometrium over the counter</a> cheap clomiphene generic
Ffpdwm
alendronate for sale online - <a href="https://pilaxmax.com/pilex/">buy pilex generic</a> order medroxyprogesterone 5mg sale
Yuwomg
buy aygestin 5 mg online - <a href="https://norethgep.com/yasmin/">yasmin online order</a> purchase yasmin pills
Qjxxdh
dostinex for sale online - <a href="https://adostilin.com/premarin/">buy cheap generic premarin</a> buy alesse pills
Bgeibt
estradiol 1mg over the counter - <a href="https://festrolp.com/">how to get estrace without a prescription</a> anastrozole us
Podgkb
г‚·гѓ«гѓ‡гѓЉгѓ•г‚Јгѓ« гЃЉгЃ™гЃ™г‚Ѓ - <a href="https://jpedpharm.com/">г‚·гѓ«гѓ‡гѓЉгѓ•г‚Јгѓ« гЃ®иіје…Ґ</a> г‚·г‚ўгѓЄг‚№ её‚иІ© гЃЉгЃ™гЃ™г‚Ѓ
Rvpcxb
プレドニン 薬局で買える - <a href="https://jpaonlinep.com/jazithromycin/">アジスロマイシン 個人輸入 おすすめ</a> アジスロマイシン おすすめ
Pzdmuz
プレドニン処方 - <a href="https://jpanfarap.com/jpaaccutane/">アキュテインの購入</a> イソトレチノイン処方
Pmvcrp
eriacta better - <a href="https://eriagra.com/fforzestf/">forzest agony</a> forzest chin