Long Time No See
好久回來整理 blog 了, hexo 的 dependabot 一直發 Pull requests 通知我要更新 … 真是好心, 一時間也不知道怎麼升級 npm 相關的 package, google 了一下寫點筆記, 下次回來還能用到
常用指令
先打個岔 寫一些常用指令
1 2 3 4 5 6 7 8 9
| npm update hexo-cli -g
hexo init hexo n {$title} hexo clean hexo g -s hexo s hexo d
|
升級指令
目標就是和 dependabot 的 PR 做一樣的事, 更新 package.json
和 package-lock.json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| brew update node npm update -g npm
npm outdated
npm update -g hexo-cli hexo version
npm update -g
npm install -g npm-check npm-upgrade npm-check && npm-upgrade
npm install git add package.json package-lock.json yarn.lock
git clone https://github.com/theme-next/hexo-theme-next themes/next
hexo clean hexo g -s hexo d
|