0

When entering the command npm install sass --watch ...

I get back,

npm ERR! enoent This is realated to npm not being able to find a file.

Though, the file is there and everything is spelled correctly. Can anyone help?

Minal Chauhan
  • 6,025
  • 8
  • 21
  • 41
John Roby
  • 1
  • 1
  • 1

1 Answers1

0

Hey John take a look at this reply. Basically there are different solutions:

Single Ampersand solution

Adding to your package.json the following:

"dev:watch" : "npm run sass:watch & npm run livereload"

Parallelshell solution

Using Parallelshell and adding to your package.json the following:

"serve": "live-server",
"start": "parallelshell \"npm run scss && npm run scss -- -w\" \"npm run serve\""

Concurrently solution

Using Concurrently. Install it npm install concurrently --save-dev and add the script:

"dev:watch": "concurrently  \" npm run sass:watch \" \" npm run livereload  \" "