Console error when running my custom node.js script called npm start

3

I created a custom command in my package.json called npm start that includes tasks like gulp watch & node server.js, when executing it in console the following appears:

  

events.js: 160         throw er; // Unhandled 'error' event         ^

     

Error: watch   /home/stephany/Documents/tefa/Projects/photoawesome/package.json   ENOSPC       at exports._errnoException (util.js: 953: 11)       at FSWatcher.start (fs.js: 1423: 19)       at Object.fs.watch (fs.js: 1450: 11)

Thank you I await your answers!

    
asked by TefaSmile 29.05.2016 в 21:11
source

2 answers

0

There could be a space or permissions problem.

ENOSPC = No hay espacio en el disco

Maybe you're working on a small disk, on a pendrive or on a server that has a small couta

    
answered by 30.05.2016 в 16:09
0

If your development environment is windows, it will not work like that. I solved it by installing the package npm i --save-dev npm-run-all and in the package.json file I stayed as follows:

"scripts": {
    "build": "gulp",
    "gulp-watch": "gulp watch",
    "start-server": "node server.js",
    "start": "npm-run-all --parallel gulp-watch  start-server"
  } 

I hope it works for you

    
answered by 11.01.2019 в 16:37