Skip to content

Instantly share code, notes, and snippets.

View chiehwen's full-sized avatar

Chuck Yang chiehwen

View GitHub Profile
  • Flat UI

    • 扁平化風格的 Bootstrap,有 Free 與 Pro 的版本,Pro 需要付費,不過大多情況下,Free 版本已足夠使用。
  • Font Awesome

    • 一套強大的 icon 圖庫,除了使用 Bootstrap 自帶的 Glyphicons 之外,你還可以使用 Font Awesome,完全相容 Bootstrap。
  • typeahead.js

    • 原是在 Bootstrap 2.x 版中的輸入提示功能,現在已成為 Twitter 下的獨立專案,現在要使用它需要自行載入。
  • BSIE

js/ext/angular/test/**/*.js
js/views/scrollView.js
js/views/sliderView.js
js/utils/utils.js
machine:
node:
version: v0.10.26
ruby:
version: 2.1.2
checkout:
post:
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
dependencies:
post:

今天 (8/24) 在安裝 browserify-shim 的時候一直出現這個 Error 訊息

npm ERR! peerinvalid The package browserify does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer browserify-shim@3.6.0 wants browserify@>= 2.3.0 < 5

我一開始事先嘗試使用 npm cache clean 後重新再跑一次 npm install,但很明顯的沒有任何用處。

上網看了多資料,但都沒有效果,折騰了兩個多小時,最後查看 browserify-shim 的 package.json 發現他使用的 browserify 版本是 4.2.3,而我原本安裝的版本是 5.10.1 (使用 npm install browserify --save-dev 安裝),很明顯的是 browserify 的版本太高了,而 browserify-shim 還沒有支援到這麼高的版本!所以導致無法安裝,手動變更 package.json 的 browserify 版本為 4.2.3 就可以了!

{
"ipp": "100",
"page": 1,
"pages": 100,
"voc": [
{
"_id": "531137a0af597b79a4dac16f",
"word": "a (large) number of",
"right": "許多"
},