代码改变世界

metronic 4.5.7开发环境下, 在Windows 10上安装了10.16.0版本的node js之后,导致node sass无法加载

2019-06-12 10:13  卡车司机  阅读(535)  评论(0编辑  收藏  举报

解决办法: 修改metronic 中的package.json文件, 将gulp-sass的依赖项版本改为3.2.1即可解决

{
  "name": "metronic",
  "version": "4.5.7",
  "description": "Metronic by Keenthemes",
  "main": "gulpfile.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "gulp": "^4.0.2",
    "gulp-connect": "^5.7.0",
    "gulp-ignore": "^2.0.1",
    "gulp-minify-css": "^1.2.1",
    "gulp-prettify": "^0.5.0",
    "gulp-rename": "^1.2.2",
    "gulp-rtlcss": "^0.1.4",
    "gulp-sass": "^3.2.1",
    "gulp-sourcemaps": "^1.5.2",
    "gulp-uglify": "^1.4.2"
  }
}