NPM Install下载很慢-VUE项目加载模块慢

    相信刚接触NODE JS的人,在使用过程中都会发现npm install命令很慢,甚至有时候卡死报错。像我们VUE项目下载下来以后,又要通过该命令去加载模块,那如何去避免这种尴尬呢?主要两个方法:
    第一点:
        更换镜像源-NPM下载时默认从国外下载,而某些资源可能由于地域限制无法访问或者过慢,所以我们更换为淘宝镜像。
临时使用:
npm --registry https://registry.npm.taobao.org install
永久设置:
npm config set registry http://registry.npm.taobao.org/
查看是否生效-获取当前镜像源地址:
npm get registry
    第二点:
        由于模块之间相互依赖,使得我们就算通过国内镜像下载,但是其模块所依赖的组件还是指定国外源,使得某些时候更换了淘宝镜像源依旧很慢,这个时候我们可以将NPM指令替换为CNPM,但需要先安装。
npm install cnpm -g --registry=https://registry.npm.taobao.org
    什么是CNPM呢,简单地说,就是中国源 C-Chinese,这是基于淘宝的插件服务器,该服务器会以10分钟的间隔同步NPM官方数据,使用CNPM可以解决大多数的NPM下载问题。
    到这里,关于NPM下载太慢的问题就已经解决了,有问题欢迎留言反馈!
a.jpg
作者:徐先森 文章名: 《NPM Install下载很慢-VUE项目加载模块慢》
收录情况: 百度已收录
版权说明:若无特别注明,本文皆为 "徐博客”原创,转载请保留出处!

相关推荐

发表评论

路人甲
看不清楚?点图切换 Ctrl+Enter快速提交

网友评论(25611)

<a href="https://finasteridealop.com/">finasteride 1 mg online</a> <a href="https://cleocing.com/">cleocin hcl 300 mg</a> <a href="https://silagratab.com/">silagra tablets online</a> <a href="https://clonidinenorx.com/">clonidine hcl .2mg</a> <a href="https://cialis5.com/">cialis order</a> <a href="https://allopurinol24.com/">how to get allopurinol without prescription</a>
Jacksmath 30秒前 回复
Primary rch.kmlh.xuboke.cn.rex.et answerable sizes, outline [URL=http://androidforacademics.com/rumalaya-liniment/ - cheapest rumalaya liniment[/URL -  [URL=http://postconsumerlife.com/prednisone-without-prescription/ - buy prednisone[/URL -  [URL=http://takara-ramen.com/propecia-uk/ - propecia uk[/URL -  propecia canada [URL=http://berksce.com/medicine/cialis-vs-viagra/ - cialis women[/URL -  [URL=http://biblebaptistny.org/cialis-online/ - cialis how long to work[/URL -  [URL=http://frankfortamerican.com/propecia-generic/ - propecia uk[/URL -  [URL=http://myonlineslambook.com/drugs/optimum-performance-ed-pack/ - canadian optimum performance ed pack[/URL -  optimum performance ed pack brand [URL=http://meilanimacdonald.com/canadian-pharmacy/ - canadian pharmacy cialis[/URL -  [URL=http://iliannloeb.com/naltrexone/ - naltrexone[/URL -  [URL=http://gerioliveira.com/cialis-xanax-acnecide/ - safe site to buy cialis[/URL -  [URL=http://frankfortamerican.com/midamor/ - cheapest midamor[/URL -  [URL=http://tasteofleeds.com/generic-cialis/ - tadalafil generic[/URL -  erythema <a href="http://androidforacademics.com/rumalaya-liniment/">cheapest rumalaya liniment</a> <a href="http://postconsumerlife.com/prednisone-without-prescription/">prednisone</a> <a href="http://takara-ramen.com/propecia-uk/">propecia</a> <a href="http://berksce.com/medicine/cialis-vs-viagra/">cialis women</a> cialis vs viagra <a href="http://biblebaptistny.org/cialis-online/">cialis 20mg</a> <a href="http://frankfortamerican.com/propecia-generic/">buying propecia online</a> <a href="http://myonlineslambook.com/drugs/optimum-performance-ed-pack/">cost of optimum performance ed pack tablets</a> <a href="http://meilanimacdonald.com/canadian-pharmacy/">buy pharmacy online cheap</a> canadian pharmacy cialis <a href="http://iliannloeb.com/naltrexone/">naltrexone</a> <a href="http://gerioliveira.com/cialis-xanax-acnecide/">cialis xanax acnecide</a> cialis compatibilty naproxen <a href="http://frankfortamerican.com/midamor/">midamor</a> <a href="http://tasteofleeds.com/generic-cialis/">tadalafil online</a> buy cialis online canada withdrawn: http://androidforacademics.com/rumalaya-liniment/ rumalaya liniment no prescription cheapest rumalaya liniment http://postconsumerlife.com/prednisone-without-prescription/ online prednisone http://takara-ramen.com/propecia-uk/ generic propecia without prescription http://berksce.com/medicine/cialis-vs-viagra/ normal dose of cialis http://biblebaptistny.org/cialis-online/ buy cialis without prescription http://frankfortamerican.com/propecia-generic/ propecia generic http://myonlineslambook.com/drugs/optimum-performance-ed-pack/ cost of optimum performance ed pack tablets http://meilanimacdonald.com/canadian-pharmacy/ buy cialis online canada pharmacy http://iliannloeb.com/naltrexone/ naltrexone http://gerioliveira.com/cialis-xanax-acnecide/ cialis xanax acnecide http://frankfortamerican.com/midamor/ midamor for sale http://tasteofleeds.com/generic-cialis/ cialis canadian pharmacy intrinsically threaded queuing varies.
Frequently, btj.hiqv.xuboke.cn.zwm.lg laughter, breathless lines, [URL=http://prettysouthernbk.com/xenical/ - xenical[/URL -  [URL=http://sci-ed.org/ciprofloxacin-500-mg/ - ciprofloxacin 500mg antibiotics[/URL -  [URL=http://csharp-eval.com/propecia-for-sale/ - propecia cost[/URL -  [URL=http://sci-ed.org/levitra-20-mg/ - levitra 20 mg prices[/URL -  order levitra online [URL=http://harvardafricaalumni.com/priligy-online/ - generic priligy dapoxetine[/URL -  [URL=http://michiganvacantproperty.org/cialis-generic/ - cialis generic[/URL -  [URL=http://thearkrealmproject.com/generic-cialis-lowest-price/ - cialis 20mg price at walmart[/URL -  [URL=http://frankfortamerican.com/dapoxetine/ - buy dapoxetine online[/URL -  [URL=http://secretsofthearchmages.net/cialis-tablets/ - discount cialis[/URL -  [URL=http://telugustoday.com/propecia-without-prescription/ - propecia[/URL -  [URL=http://meilanimacdonald.com/levitra-online/ - online levitra[/URL -  [URL=http://biblebaptistny.org/cialis-20-mg-lowest-price/ - cialis tablets[/URL -  clindamycin, <a href="http://prettysouthernbk.com/xenical/">xenical cheap</a> xenical <a href="http://sci-ed.org/ciprofloxacin-500-mg/">buy cipro</a> <a href="http://csharp-eval.com/propecia-for-sale/">propecia for sale</a> <a href="http://sci-ed.org/levitra-20-mg/">levitra 20 mg</a> <a href="http://harvardafricaalumni.com/priligy-online/">priligy pills</a> <a href="http://michiganvacantproperty.org/cialis-generic/">cialis cost at walmart</a> generic cialis fedex <a href="http://thearkrealmproject.com/generic-cialis-lowest-price/">generic cialis lowest price</a> <a href="http://frankfortamerican.com/dapoxetine/">priligy online</a> priligy coupons <a href="http://secretsofthearchmages.net/cialis-tablets/">discount cialis</a> <a href="http://telugustoday.com/propecia-without-prescription/">propecia</a> <a href="http://meilanimacdonald.com/levitra-online/">levitra online</a> <a href="http://biblebaptistny.org/cialis-20-mg-lowest-price/">cialis 20 mg lowest price</a> forefoot; dedicated statisticians, http://prettysouthernbk.com/xenical/ xenical orlistat http://sci-ed.org/ciprofloxacin-500-mg/ cipro http://csharp-eval.com/propecia-for-sale/ propecia for sale http://sci-ed.org/levitra-20-mg/ levitra 20 mg http://harvardafricaalumni.com/priligy-online/ dapoxetine online http://michiganvacantproperty.org/cialis-generic/ overnight cialis http://thearkrealmproject.com/generic-cialis-lowest-price/ cialis http://frankfortamerican.com/dapoxetine/ priligy 30mg http://secretsofthearchmages.net/cialis-tablets/ generic cialis 20mg http://telugustoday.com/propecia-without-prescription/ propecia http://meilanimacdonald.com/levitra-online/ levitra online online levitra http://biblebaptistny.org/cialis-20-mg-lowest-price/ cialis read, surmises.
ojuazip 1分钟前 回复
<a href="https://zofranondansetron.com/">can i buy zofran otc</a> <a href="https://seroquel50.com/">seroquel 250 mg</a> <a href="https://medrol80.com/">medrol tablets 16mg</a> <a href="https://sildalistab.com/">discount sildalis</a> <a href="https://erythromycinlab.com/">order erythromycin</a> <a href="https://finpecia911.com/">finpecia 1mg price in india</a> <a href="https://prazosin.us.com/">prazosin 5 mg in india</a> <a href="https://elimitepermethrin.com/">where can you get elimite</a> <a href="https://malegra.us.org/">malegra 25</a> <a href="https://dipyridamol.com/">cost of dipyridamole</a> <a href="https://atenolol25.com/">atenolol cream</a> <a href="https://disulfiram.us.com/">where to buy antabuse in australia</a> <a href="https://hydrochlorothiazide2.com/">hydrochlorothiazide online</a> <a href="https://zoloft360.com/">200g zoloft</a> <a href="https://viagra2019.com/">where to buy viagra online usa</a> <a href="https://phenergan125.com/">phenergan pharmacy</a> <a href="https://priligydapoxetin.com/">priligy buy online paypal</a> <a href="https://plavix.us.com/">plavix price in canada</a> <a href="https://inderal.us.com/">inderal 20 mg price in india</a> <a href="https://clomid150.com/">where to buy clomid over the counter</a>
Ivysmath 1分钟前 回复
minimum credit score for mortgage  experian credit  <a href="http://creditreportchw.com/ ">my credit report </a> social credit score
Logsmoofagwab 2分钟前 回复
[url=http://albenzamed.com/]albenza 200mg[/url] [url=http://allopurinol24.com/]allopurinol 100 mg where to buy[/url] [url=http://ciproflxn.com/]cipro in canada[/url] [url=http://medrol80.com/]medrol 48 mg[/url] [url=http://cymbaltarx.com/]90mg cymbalta[/url]
Annasmath 3分钟前 回复
A hni.zhyp.xuboke.cn.qgl.lb obstetric home [URL=http://mannycartoon.com/zanaflex/ - purchase zanaflex without a prescription[/URL -  [URL=http://androidforacademics.com/retin-a-micro/ - retin a[/URL -  retin a [URL=http://androidforacademics.com/buy-levitra-online/ - vardenafil 20mg tablets[/URL -  [URL=http://dallasmarketingservices.com/cialis-20/ - cialis 10 mg[/URL -  [URL=http://sci-ed.org/fucidin/ - fucidin lowest price[/URL -  [URL=http://sci-ed.org/cialis-20-mg-price/ - cialis uk[/URL -  [URL=http://buckeyejeeps.com/nexium/ - nexium 40 mg price[/URL -  [URL=http://umichicago.com/retin-a/ - retin-a cream[/URL -  [URL=http://telugustoday.com/sildalis/ - buy sildalis[/URL -  [URL=http://takara-ramen.com/buy-propecia-online/ - propecia[/URL -  wooden <a href="http://mannycartoon.com/zanaflex/">zanaflex</a> <a href="http://androidforacademics.com/retin-a-micro/">tretinoin to buy</a> <a href="http://androidforacademics.com/buy-levitra-online/">levitra 20 mg price</a> <a href="http://dallasmarketingservices.com/cialis-20/">cialis 20mg</a> <a href="http://sci-ed.org/fucidin/">fucidin</a> <a href="http://sci-ed.org/cialis-20-mg-price/">cialis without an rx</a> <a href="http://buckeyejeeps.com/nexium/">nexium generic</a> <a href="http://umichicago.com/retin-a/">prescription retin a cream cost</a> <a href="http://telugustoday.com/sildalis/">sildalis</a> <a href="http://takara-ramen.com/buy-propecia-online/">propecia online</a> unsure http://mannycartoon.com/zanaflex/ zanaflex for pain management http://androidforacademics.com/retin-a-micro/ tretinoin cream .05 http://androidforacademics.com/buy-levitra-online/ vardenafil levitra 20 mg price http://dallasmarketingservices.com/cialis-20/ buy generic cialis http://sci-ed.org/fucidin/ fucidin online http://sci-ed.org/cialis-20-mg-price/ tadalafil alternative http://buckeyejeeps.com/nexium/ nexium 40 mg price http://umichicago.com/retin-a/ retin a cream http://telugustoday.com/sildalis/ sildalis generic buy sildalis online http://takara-ramen.com/buy-propecia-online/ propecia evacuate sliding.
aredeneziso 4分钟前 回复
<a href="https://indocinrx.com/">can i buy indocin</a> <a href="https://tadalafillil.com/">tadalafil from india to usa</a>
Jimsmath 6分钟前 回复
hemp oil for pain  cbd online  <a href="http://cbdoilforpainer.com/ ">cbd for sale </a> cbd oil for pain
Takes ubx.itog.xuboke.cn.ieq.mm breathe; [URL=http://csharp-eval.com/viagra-100mg/ - buy viagra on line[/URL -  [URL=http://takara-ramen.com/zanaflex/ - zanaflex pain management[/URL -  [URL=http://michiganvacantproperty.org/applicators-for-lumigan/ - generic applicators for lumigan uk[/URL -  [URL=http://postconsumerlife.com/buy-prednisone/ - prednisone 20mg[/URL -  [URL=http://takara-ramen.com/norvasc/ - amlodipine and vitamin e[/URL -  [URL=http://biblebaptistny.org/amoxicillin-500-mg/ - amoxicillin[/URL -  [URL=http://gormangreen.com/drug/silvitra/ - discount silvitra[/URL -  [URL=http://pharmacytechnicians101.com/generic-cialis/ - best generic cialis sites[/URL -  [URL=http://azlyricsall.com/find-lowest-price-for-cialis/ - find lowest price for cialis[/URL -  [URL=http://postconsumerlife.com/priligy/ - dapoxetine for sale[/URL -  [URL=http://chesscoachcentral.com/product/arimidex/ - best price arimidex[/URL -  [URL=http://secretsofthearchmages.net/viagra-com/ - viagra[/URL -  waterhammer phacoemulsion breach <a href="http://csharp-eval.com/viagra-100mg/">viagra pills free shipping</a> <a href="http://takara-ramen.com/zanaflex/">prednisone and zanaflex side</a> <a href="http://michiganvacantproperty.org/applicators-for-lumigan/">applicators for lumigan overnight</a> <a href="http://postconsumerlife.com/buy-prednisone/">prednisone 20mg</a> <a href="http://takara-ramen.com/norvasc/">amlodipine besylate 2.5 mg tab</a> <a href="http://biblebaptistny.org/amoxicillin-500-mg/">amoxil</a> <a href="http://gormangreen.com/drug/silvitra/">silvitra</a> <a href="http://pharmacytechnicians101.com/generic-cialis/">generic cialis</a> <a href="http://azlyricsall.com/find-lowest-price-for-cialis/">cialis on line us</a> <a href="http://postconsumerlife.com/priligy/">priligy dapoxetine</a> <a href="http://chesscoachcentral.com/product/arimidex/">arimidex from india</a> <a href="http://secretsofthearchmages.net/viagra-com/">viagra</a> fed, http://csharp-eval.com/viagra-100mg/ viagra discount http://takara-ramen.com/zanaflex/ zanaflex pain management zanaflex 2mg http://michiganvacantproperty.org/applicators-for-lumigan/ applicators for lumigan http://postconsumerlife.com/buy-prednisone/ prednisone 20mg http://takara-ramen.com/norvasc/ amlodipine tablets http://biblebaptistny.org/amoxicillin-500-mg/ buy amoxicillin online http://gormangreen.com/drug/silvitra/ silvitra online drugstore http://pharmacytechnicians101.com/generic-cialis/ cialis http://azlyricsall.com/find-lowest-price-for-cialis/ find lowest price for cialis http://postconsumerlife.com/priligy/ dapoxetine online http://chesscoachcentral.com/product/arimidex/ arimidex http://secretsofthearchmages.net/viagra-com/ viagra.com ciliary vaso-occlusion strokes scalp.
ozeseperaoli 8分钟前 回复
1 2 3 4 5 6 ... »