使用cnpm install安装项目依赖的过程出现[fsevents@1.0.0]optional install error: Package require os(darwin) not
compatible with your platform(win32)的警告。
这是一个可以忽略的错误,fsevents是可选的依赖,只能应用于maxOS系统,不适合Windows或者Linux。
国内许多回答说跟sass loader有关,运行一下命令:
cnpm rebuild node-sass
然后:
cnpm install
备注 :安装淘宝镜像
安装cnpm用cnpm替代npm
npm install -g cnpm --registry=https://registry.npm.taobao.org
地址:http://npm.taobao.org/