Возникли проблемы с настройкой SCSS!Получение ошибок при запуске = npm run compile: sass - PullRequest
0 голосов
/ 01 февраля 2019

Я пытаюсь настроить SCSS через BASH.я получаю следующие ошибки: /

Пожалуйста, имейте в виду, я очень плохо знаком с кодированием, так что будьте осторожны со мной:)

$ 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

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...