node-sass安装问题
起因
最近在上 Coursera 的 Front-end Web UI Frameworks and Tools,进行到第4周的 Less is More 一节时,发现在安装 node-sass 时总是失败,同时也查找了很多的解决方案,但最终都告以失败。最后还是结合着网上各位大神提供的方案,算是成功安装了 node-sass。
课程中提供的安装方案
- 安装 node-sass:
npm install --save-dev [email protected]
这会在项目中安装 node-sass NPM 模块,并将其作为开发依赖项添加到 package.json 文件中。
- 接下来打开 package.json