在測試 gulp-webapp node-sass
的時候遇到了 styles 不能被正常編譯的問題,究其原因是
沒有被正常安裝。
根本原因是國内網絡的原因。
最終的解決方法是通過淘寶的
npm
鏡像安裝 node-sass
首先安裝 cnpm
1 $ npm install -g cnpm --registry=https://registry.npm.taobao.org
然後安裝
node-sass
1 $ cnpm install node-sass
最後安裝
gulp-sass
重新運作$ gulp serve,一切正常,大功告成!
感謝您的閱讀,如果您對我的文章感興趣,可以關注我的部落格,我是叙帝利,下篇文章再見!
開發低代碼平台的必備拖拽庫 https://github.com/ng-dnd/ng-dnd
基于 Angular Material 的中背景管理架構 https://github.com/ng-matero/ng-matero
Angular Material Extensions 擴充元件庫 https://github.com/ng-matero/extensions
仿 Windows 照片檢視器插件 https://github.com/nzbin/photoviewer
仿 Windows 照片檢視器插件 jQuery 版 https://github.com/nzbin/magnify
完美替代 jQuery 的子產品化 DOM 庫 https://github.com/nzbin/domq
簡化類名的輕量級 CSS 架構 https://github.com/nzbin/snack
與任意 UI 架構搭配使用的通用輔助類 https://github.com/nzbin/snack-helper
單元素純 CSS 加載動畫 https://github.com/nzbin/three-dots
有趣的 jQuery 卡片抽獎插件 https://github.com/nzbin/CardShow
懸疑科幻電影推薦 https://github.com/nzbin/movie-gallery
鍛煉記憶力的小程式 https://github.com/nzbin/memory-stake