terrible programmer
terrible programmer
KPCKevin Powell - Community
Created by terrible programmer on 11/26/2023 in #front-end
npm run compile:sass isn't working. My Node.js version is (v18.17.0). Is the version not compatible
Here is the error file when I try to npm run the script:
[email protected] compile:sass node-sass sass/main.scss css/style.css
'CSS\Advanced' is not recognized as an internal or external command, operable program or batch file. node:internal/modules/cjs/loader:1080 throw err; ^ Error: Cannot find module 'E:\ahtytbo\ahtytbo eidsov\udemy\node-sass\bin\node-sass' at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) at Module._load (node:internal/modules/cjs/loader:922:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v18.17.0
```
This is the package.json file

{
"name": "natours",
"version": "1.0.0",
"description": "Landing page for natours",
"main": "index.js",
"devDependencies": {
"node-sass": "^9.0.0"
},
"scripts": {
"compile:sass": "node-sass sass/main.scss css/style.css"
},
"author": "Oteng",
"license": "ISC"
}
```
This is the package.json file

{
"name": "natours",
"version": "1.0.0",
"description": "Landing page for natours",
"main": "index.js",
"devDependencies": {
"node-sass": "^9.0.0"
},
"scripts": {
"compile:sass": "node-sass sass/main.scss css/style.css"
},
"author": "Oteng",
"license": "ISC"
}
3 replies