【发布时间】:2021-10-31 12:32:34
【问题描述】:
{
"status": 1,
"file": "E:/Natours/sass/main.scss",
"line": 31,
"column": 5,
"message": "argument `$alpha` of `rgba($color, $alpha)` must be a number",
"formatted": "Error: argument `$alpha` of `rgba($color, $alpha)` must be a number\n on line 31 of sass/main.scss, in function `rgba`\n from line 31 of sass/main.scss\n>> rgba($color-primary-light, o.8),\r\n ----^\n"
}
这是来自控制台的错误:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! natours@1.0.0 compile:sass: `node-sass sass/main.scss css/style.css`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the natours@1.0.0 compile:sass script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\SAHIL\AppData\Roaming\npm-cache\_logs\2021-09-02T01_47_56_926Z-debug.log
【问题讨论】: