Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

legodude17/npm-troubleshoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-troubleshoot

A utility for troubleshooting npm.

npm

A similar command has made it into npm itself! Try running npm doctor.

Usage

Command Line

npm-troubleshoot [loglevel]

Possible log levels are:

  • all
  • silly
  • verbose
  • info
  • warn (default)
  • error and success (same level)

In code

var touble = require('npm-troubleshoot');
trouble('silent', function (err, clear) {
  //err is the error or null
  //clear is true if the tests succeeded or false if they didn't
});

trouble([loglevel], [rules], [cb])

  • log level same as above
  • rules are a string of space speareted names, or 'all' to run all of them
  • cb is the callback

Contributing

To get started check out the rule-template.js file. Then look at the rules dir.

About

A utility for troubleshooting npm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published