Js-error on rake webpack:compile

I hit this error earlier when running rake webpack:compile

`
/home/vagrant/foreman/node_modules/.bin/webpack --config /home/vagrant/foreman/config/webpack.config.js --bail
module.js:478
throw err;
^

Error: Cannot find module ‘./clone.js’
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/home/vagrant/foreman/node_modules/graceful-fs/graceful-fs.js:4:13)
at Module._compile (module.js:577:32)
at Object.Module._extensions…js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
rake aborted!
Command failed with status (1): [/home/vagrant/foreman/node_modules/.bin/we…]
/home/vagrant/.rvm/gems/ruby-2.5.1/gems/webpack-rails-0.9.11/lib/tasks/webpack.rake:17:in block (2 levels) in <main>' /home/vagrant/.rvm/gems/ruby-2.5.1/gems/rake-12.3.1/exe/rake:27:in <top (required)>’
/home/vagrant/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in eval' /home/vagrant/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in
Tasks: TOP => webpack:compile
(See full trace by running task with --trace)
`
To fix I did

[vagrant@gamma foreman]$ npm install graceful-fs@4.1.13 TheForemanDevDeps@1.21.0 /home/vagrant/foreman └─┬ jest-cli@20.0.4 └── graceful-fs@4.1.13
and then running rake webpack:compile`