使用autoprefixer运行postcss时出错

时间:2019-06-03 19:48:52

标签: css npm

我正在尝试运行npm prefix:css,但是在我的软件包中出现了以下错误

详细堆栈错误:advancedcss@1.0.0前缀:css:postcss css/style.concat.css --use autoprefixer -b 'last 10 versions' -d css/style.prefix.css

我尝试重新安装autoprefixer和postcss npms

{
  "name": "advancedcss",
  "version": "1.0.0",
  "description": "Landing page for disney",
  "main": "index.js",
  "scripts": {
    "watch:sass": "node-sass sass/main.scss css/style.css -w",
    "compile:sass": "node-sass sass/main.scss css/style.comp.css",
    "concat:css": "concat -o css/style.concat.css css/style.comp.css",
    "prefix:css": "postCSS --use autoprefixer -b 'last 10 versions' css/style.concat.css -o css/style.prefix.css"
  },
  "author": "manoj",
  "license": "ISC",
  "devDependencies": {
    "autoprefixer": "^9.6.0",
    "concat": "^1.0.3",
    "node-sass": "^4.12.0",
    "postcss-cli": "^6.1.2"
  }
}

0 个答案:

没有答案