用yarn安装报错node_modules\node sass:Command failed.

用yarn安装报错node_modules\node sass:Command failed.

先把错误提示附上

D:\work\workspace\jeecg-boot-master\ant-design-vue-jeecg>yarn install
yarn install v1.22.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has unmet peer dependency "css-loader@*".
warning " > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.1.0 || ^5.0.0-0".
warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
[4/4] Building fresh packages...
[6/6] ⠂ ant-design-vue
[-/6] ⠂ waiting...
[3/6] ⠄ yorkie
[-/6] ⠄ waiting...
error D:\work\workspace\jeecg-boot-master\ant-design-vue-jeecg\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\work\workspace\jeecg-boot-master\ant-design-vue-jeecg\node_modules\node-sass

这个错误说node-sass指令失败,那就是说node-sass没有。

error D:\work\workspace\jeecg-boot-master\ant-design-vue-jeecg\node_modules\node-sass: Command failed.

解决办法

cnpm install node-sass
yarn install

你可能感兴趣的:(Ant-design-vue,vue,antd)