Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annoying "npm update check" message #77

Closed
crystalfp opened this issue Dec 30, 2020 · 6 comments
Closed

Annoying "npm update check" message #77

crystalfp opened this issue Dec 30, 2020 · 6 comments

Comments

@crystalfp
Copy link

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

@M-Zuber
Copy link
Owner

M-Zuber commented Dec 30, 2020

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

@crystalfp
Copy link
Author

crystalfp commented Dec 30, 2020 via email

@M-Zuber
Copy link
Owner

M-Zuber commented Jan 4, 2021

I would need a reproduceable example as well

Are you running the most recent version of nodemon?

@crystalfp
Copy link
Author

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

@crystalfp
Copy link
Author

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

@crystalfp
Copy link
Author

Seems does not happens anymore. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants