secret-shield
secret-shield copied to clipboard
Error: Cannot find module 'command-line-args'
What repository are you running secret-shield on?
Private repo
What version of secret-shield are you running?
npm list -g throws a bunch of errors like:
npm ERR! missing: acorn@^5.5.3, required by @mapbox/[email protected]
npm ERR! missing: command-join@^2.0.0, required by @mapbox/[email protected]
npm ERR! missing: command-line-args@^5.0.2, required by @mapbox/[email protected]
npm ERR! missing: d3-queue@^3.0.7, required by @mapbox/[email protected]
npm ERR! missing: decrypt-kms-env@^3.0.0, required by @mapbox/[email protected]
npm ERR! missing: es6-promise@^4.2.4, required by @mapbox/[email protected]
npm ERR! missing: esprima@^4.0.0, required by @mapbox/[email protected]
npm ERR! missing: fast-fuzzy@^1.5.0, required by @mapbox/[email protected]
npm ERR! missing: find-in-files@^0.5.0, required by @mapbox/[email protected]
1.0.2
How did you invoke secret-shield?
global pre-commit hook:
$ git commit -m 'Fix typo in cfn template'
module.js:471
throw err;
^
Error: Cannot find module 'command-line-args'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/andrewevans/Projects/secret-shield/bin/secret-shield.js:9:14)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
$ git commit -m 'Fix typo' --no-verify
[github-apps-v2 c9059f2] Fix typo
1 file changed, 1 insertion(+), 1 deletion(-)
$ node --version
v6.12.3
$ which secret-shield
/Users/agius/.nvm/versions/node/v6.12.3/bin/secret-shield
I have no idea what's going on with the hooks and nvm here, or even what the cwd is when running secret-shield