Ionic 2之node-sass问题解决办法

Posted add+

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ionic 2之node-sass问题解决办法相关的知识,希望对你有一定的参考价值。

 

node 重置Ionic项目:

npm cache clean

在安装Ionic2的git-hub项目:https://github.com/driftyco/ionic-conference-app/issues/376

可能会出现一个报错,是因为node-sass没有安装,具体安装如下:

 

下载node-sass: https://github.com/sass/node-sass/releases/download/v3.8.0/win32-x64-46_binding.node

 

安装node-sass

配置环境

set SASS_BINARY_PATH=F:\node-sass\win32-x64-46_binding.node

echo %SASS_BINARY_PATH%

安装node-sass

npm i -g node-sass

以上是关于Ionic 2之node-sass问题解决办法的主要内容,如果未能解决你的问题,请参考以下文章