Aaron's Blog

Tech + Life + Thoughts


  • Home

  • About

  • Categories

  • Archives

  • Search

学习笔记 - 2018年10月第一周 - 包管理工具

Posted on 2018-10-01 | In Tech
NPM和YARN区别NPM和YARN是目前js中比较流行的包管理工具,经常在项目中使用来负责管理依赖。但是光会用却不知道原理,那今天就了解一下NPM和YARN的区别和优缺点。 速度YARN的速度较NPM更快一点,因为它采用并行安装的方式,NPM按顺序一个一个安装,YARN则一锅端并行安装,不过在中国大陆因为某些你懂得原因,还是用NPM淘宝镜像快一点 离线模式YARN相较NPM多了一个离线模式,安装过的软件包不用重新下载 输出简洁YARN在命令行里的输出信息相对比较简洁,并且结合了emoji看起来更直观一点 安装中断安装过程中如果一个包失败,NPM会导致整个安装失败,而YARN则会自动尝试重新安装 文件大小YARN的文件包相比NPM更小了点 命令行相较于NPM INSTALL/UNINSTALL, YARN使用yarn add/remove, 看起来感觉更接地气了一点 总得来说YARN似乎优点多多,毕竟是几个大厂Facebook + Google等一起开发的 npm run build背后发生了什么 执行npm run build命令的时候,会执行package.json文件里的script下对应的脚本,可以看到它是”build”: “node build/build.js” 运行build.js内的脚本,设置环境为’production’, 然后引入终端显示用的旋转插件,引入用于 ...
Read more »

How to replace mail box wood post

Posted on 2018-07-03 | In DIY


Read more »

How to replace iphone SE charging port

Posted on 2018-07-03 | In DIY


Read more »

How to polish a wood table

Posted on 2018-07-03 | In DIY


Read more »

[Video]Typical day to work in Auckland - 22062018

Posted on 2018-07-03 | In Motorcycle


Read more »

如何种植四季豆

Posted on 2018-07-03 | In DIY


Read more »

How to make monitor stand

Posted on 2018-07-03 | In DIY


Read more »

How to make a leather card bag

Posted on 2018-07-03 | In DIY


Read more »

Garage tools wall project

Posted on 2018-07-03 | In DIY


Read more »

How to clean motorcycle chain

Posted on 2018-07-02 | In Motorcycle
  • Author:Aaron
  • Location:Auckland, New Zealand

Learning how to clean and lube a motorcycle chain is one of the essential step into motorcycle maintainance for new riders. It’s simple as and only takes 20 minutes. In this post, I will quickly show the easiest and cheapest way to clean and lube a motorcycle chain.

Tools you need

  1. Chain clean($22.5 from Motomail)
  2. Chain lube($22.5 from Motomail)
  3. Chain brush($27.5 from Motomail, you can also buy from trademe for $9)
  4. wrench
  5. Water spray
  6. Wood block(cut into size)


Read more »
1234
Aaron He

Aaron He

Know How, Can Do.

35 posts
5 categories
GitHub E-Mail Twitter Instagram
© 2020 Aaron He