M-Zuber/npm-watch

Annoying "npm update check" message

crystalfp opened this issue · 6 comments

I'm watching various tasks and frequently I receive the following message. It is generated, I think, by race condition between two tasks. Note also I'm on windows and the message's suggestion makes no sense in this environment.

[build:sass] [nodemon] 2.0.4
[build:sass] 
┌─────────────────────────────────────────────────────────────┐
│                   npm update check failed                   │
│             Try running with sudo or get access             │
│            to the local update config store via             │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\mvalle\.config │
└─────────────────────────────────────────────────────────────┘
[build:sass] [nodemon] clean exit - waiting for changes before restart

What I'm unsure is if after this message the task runs correctly or not.
Thanks for clarifying! Better, thanks for fixing!
mario

Does it happen for all tasks, in any projects?
Or just where node-sass is involved?

I would need a reproduceable example as well

Are you running the most recent version of nodemon?

OK, I'll try to setup a minimal example.
I started with the nodemon version installed by npm-watch (2.0.4). But the same happens upgrading to 2.0.6

Here is a minimal example.
BugNpmWatch.zip
Unzip somewhere then:

cd BugNpmWatch
npm i
npm run watch

you have to run the watch script several times (after Ctrl-C the running one) to see the npm update check failed message. For me it happens generally at the third attempt.
BTW, I'm on Windows 10 64bits.
Thanks for looking!
mario

Seems does not happens anymore. Thanks!