npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Issue: Error: Cannot find module 'hawk'

MacOS 10.14.2
Node 8.11.3
npm 6.4.1

npm install returns error

npm ERR! Cannot find module 'hawk'

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/simon.legg/.npm/_logs/2019-01-16T13_24_24_523Z-debug.log

I’m getting the same issue that describes. As asked in that issue I’ve uploaded the debug log as a gist here

I’ve attempted npm install -g npm to update but get the same issue. It also happens on npm search <package>

Since it is failing on a module, I’d recommend npm install --force.