cnpm安装过程中提示optional install error: Package require os(darwin) not compatible with your platform(win32)解决方法


前言

运行cnpm install后,出现

虽然提示不适合Windows,但是问题好像是sass loader出问题的。所以只要执行下面命令即可:

方案一:

cnpm rebuild node-sass
#不放心可以重新执行安装
cnpm install

方案二:

npm update
npm install
nodejs node_modules/node-sass/scripts/install.js
npm rebuild node-sass

一般只要执行方案一就够了。
然后再运行,OK。

 

博客搬运地址:

  1. cnpm安装过程中提示optional install error: Package require os(darwin) not compatible with your platform(win32)解决方法

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM