Npm run compile:sass error

C:\Users\hp\OneDrive\Desktop\Srinu\lakeview>npm run compile:sass

lakeview@1.0.0 compile:sass C:\Users\hp\OneDrive\Desktop\Srinu\lakeview
node-sass sass/main.scss css/style.css

{
“status”: 1,
“file”: “C:/Users/hp/OneDrive/Desktop/Srinu/lakeview/sass/abstracts/_mixins.scss”,
“line”: 2,
“column”: 1,
“message”: “Invalid CSS after “ck”: expected “{”, was “””,
“formatted”: “Error: Invalid CSS after “ck”: expected “{”, was “”\n on line 2 of sass/abstracts/_mixins.scss\n from line 1 of sass/main.scss\n>> \n ^\n”
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lakeview@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 lakeview@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\hp\AppData\Roaming\npm-cache_logs\2021-09-08T04_36_41_704Z-debug.log

C:\Users\hp\OneDrive\Desktop\Srinu\lakeview>

Here My Package.json File

{
“name”: “lakeview”,
“version”: “1.0.0”,
“description”: “A country website”,
“main”: “index.html”,
“scripts”: {
“compile:sass”: “node-sass sass/main.scss css/style.css”
},
“author”: “”,
“license”: “ISC”,
“dependencies”: {},
“devDependencies”: {
“node-sass”: “^6.0.1”
}
}

It told you that you have a syntax error on line 2 of the sass/abstracts/_mixins.scss file.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.