正常安装是:
yarn add node-sass
直接安装出现报错
例如:
Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
或者是
Node Sass version 6.0.0 is incompatible with ^4.0.0 || ^5.0.0.
本人是尝试了各种方法都没用,例如以下步骤
npm install -g node-gyp
npm install --global --production windows-build-tools
或者是
npm rebuild node-sass
最终换了以下方式成功,这种版本第一次见
yarn add sass node-sass@npm:sass
npm install -g node-gyp