While diving into the world of SCSS, I decided to compile my SCSS into CSS using npm. So I entered
npm run compile: sass
as defined in my package.json as follows:
"scripts": { "compile:sass": "node-sass sass/main.scss css/style.css" },
However, an error message popped up when I executed the command:
Error: Cannot find module 'C:\Users\(user)\OneDrive\Desktop\Code\node-sass\bin\node-sass' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
Please note that the file names are correctly set in my Package.json file.
If anyone has insights on this issue, your help would be much appreciated!
Feel free to request additional information from me if needed.