Exception: Npmdc::Errors::MissedDependencyError

Inherits:
CheckerError show all
Defined in:
lib/npmdc/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#options

Instance Method Summary collapse

Methods inherited from CheckerError

critical?

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Npmdc::Errors::Error

Instance Method Details



75
76
77
78
79
80
81
82
83
84
85
# File 'lib/npmdc/errors.rb', line 75

def banner
  deps = options.fetch(:dependencies)

  [
    "Following dependencies required by your package.json file are"\
    " missing or not installed properly:"
  ] + msgs(deps) <<
  [
    "\nRun `npm install` to install #{deps.size} missing packages.", :warn
  ]
end