'My project crashes when I try to run sass with npm

I am trying to use node sass for creating a website in visual studio. I follow a Guide. However, after the installation of npm and trying to run Sass with npm I always get this error message:

> [email protected] scss
> node-sass --watch scss -o css

node:internal/fs/utils:344
    throw err;
    ^

Error: ENOENT: no such file or directory, lstat 'scss'
    at Object.lstatSync (node:fs:1516:3)
    at Object.module.exports.parseDir (E:\Documents\Programming\Master en js\Maquetacion-victorroblesweb\Backend\node_modules\sass-graph\sass-graph.js:164:10)
    at Object.watcher.reset (E:\Documents\Programming\Master en js\Maquetacion-victorroblesweb\Backend\node_modules\node-sass\lib\watcher.js:17:21)
    at watch (E:\Documents\Programming\Master en js\Maquetacion-victorroblesweb\Backend\node_modules\node-sass\bin\node-sass:296:20)
    at run (E:\Documents\Programming\Master en js\Maquetacion-victorroblesweb\Backend\node_modules\node-sass\bin\node-sass:351:5)
    at Object.<anonymous> (E:\Documents\Programming\Master en js\Maquetacion-victorroblesweb\Backend\node_modules\node-sass\bin\node-sass:437:3)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  errno: -4058,
  syscall: 'lstat',
  code: 'ENOENT',
  path: 'scss'
}

The name of the folder is no biggie, I've tried this way to compilate sass many times, and I haven't succeed. The package json and the folders css and sass are in the same folder: Backend



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source