设置SCSS时遇到麻烦!运行时出现错误= npm run compile:sass

时间:2019-02-01 13:27:11

标签: npm

我正在尝试通过BASH设置SCSS。我收到以下错误:/

请记住,我对编码非常陌生,所以请放轻松:)

$ npm run compile:sass
> starternew@1.0.0 compile:sass C:\Users\Dean\box\dean\advanced-css\natours\starternew
> node-sass sass/main.scss css/style.css

{
  "status": 1,
  "file": "C:/Users/Dean/box/dean/advanced-css/natours/starternew/sass/main.scss",
  "line": 34,
  "column": 29,
  "message": "Invalid CSS after \"..../img/hero.jpg)\": expected expression (e.g. 1px, bold), was \";\"",
  "formatted": "Error: Invalid CSS after \"..../img/hero.jpg)\": expected expression (e.g. 1px, bold), was \";\"\n        on line 34 of sass/main.scss\n>>          url(../img/hero.jpg);\r\n   ----------------------------^\n"
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! starternew@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 starternew@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\Dean\AppData\Roaming\npm-cache\_logs\2019-02-01T13_17_09_534

$ npm run compile:sass

> starternew@1.0.0 compile:sass C:\Users\Dean\box\dean\advanced-css\natours\starternew
> node-sass sass/main.scss css/style.css

{
  "status": 1,
  "file": "C:/Users/Dean/box/dean/advanced-css/natours/starternew/sass/main.scss",
  "line": 34,
  "column": 29,
  "message": "Invalid CSS after \"..../img/hero.jpg)\": expected expression (e.g. 1px, bold), was \";\"",
  "formatted": "Error: Invalid CSS after \"..../img/hero.jpg)\": expected expression (e.g. 1px, bold), was \";\"\n        on line 34 of sass/main.scss\n>>          url(../img/hero.jpg);\r\n   ----------------------------^\n"
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! starternew@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 starternew@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\Dean\AppData\Roaming\npm-cache\_logs\2019-02-01T13_17_09_534Z-debug.log

Z-debug.log

0 个答案:

没有答案