Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm doctor: diagnose (and fix) problems with npm / node / build environment #6755

Closed
othiym23 opened this issue Nov 20, 2014 · 3 comments
Closed

Comments

@othiym23
Copy link
Contributor

@smikes
Copy link
Contributor

smikes commented Nov 20, 2014

This should run as a standalone tool as well as a builtin command. As a standalone tool it would (ideally) be a single script e.g.,

curl -L https://npmjs.org/doctor.sh | sh

should not require the existence of a working npm or any dependencies.

  1. run npm ping - determine if registry is reachable
  2. npm ping result should include version of latest stable node and npm
  3. doctor should check if node and npm are out of date
    • if node out of date.. what?
    • if npm out of date, offer to run npm upgrade (qv) or just npm i -g npm
  4. doctor should check for the presence of npm-debug.log and offer to send it to npm report (qv)
  5. Always/sometimes run npm cache clean ? prompt first?
  6. check for auth problems -- if not auth'd, check if there are saved credentials and (?) nuke them?
  7. provide links to change password/change email scripts
  8. ... other stuff?

A further note -- First-class windows support implies the existence of

curl -L https://npmjs.org/doctor.cmd | cmd

for windows it's not doctor.sh, but doctor.cmd

what color should we paint this thing?

@othiym23
Copy link
Contributor Author

Closing in favor of #6756. I just now noticed we made this at the same time. Funny!

@othiym23 othiym23 removed the ready label Nov 20, 2014
@faiq
Copy link
Contributor

faiq commented Nov 20, 2014

Closing in favor of #6756. I just now noticed we made this at the same time. Funny!

oh how great minds think alike

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

No branches or pull requests

3 participants