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 Error

#initialize

Constructor Details

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

Instance Method Details



21
22
23
24
25
26
27
# File 'lib/npmdc/errors.rb', line 21

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