Exception: Npmdc::Errors::NoNodeModulesError

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



38
39
40
41
42
43
44
# File 'lib/npmdc/errors.rb', line 38

def banner
  path = options.fetch(:path)
  [
    "Can't find `node_modules` folder inside '#{path}' directory!",
    ["\nRun `npm install` to install missing packages.", :warn]
  ]
end