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

Handle npm view failures #6

Closed
Arcanemagus opened this issue Oct 18, 2017 · 2 comments
Closed

Handle npm view failures #6

Arcanemagus opened this issue Oct 18, 2017 · 2 comments
Labels

Comments

@Arcanemagus
Copy link
Owner

npm view can fail, this needs to be handled:

(node:8720) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ┌─────────────────────────────────────────────────────────────┐
│                   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\abneyl\.config │
└─────────────────────────────────────────────────────────────┘
(node:8720) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@Arcanemagus
Copy link
Owner Author

Related to #3.

Arcanemagus added a commit that referenced this issue Oct 18, 2017
Retry failing npm commands a maximum of 2 times before exiting.

Fixes #6.
@Arcanemagus
Copy link
Owner Author

I think the above error was due to a missing await fixed in #8 as I couldn't reproduce this when implementing #10.

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

No branches or pull requests

1 participant