Widen / cloudfront-auth

An AWS CloudFront Lambda@Edge function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
ISC License
623 stars 148 forks source link

build.sh circular dependencies #79

Closed ArtFlag closed 3 years ago

ArtFlag commented 3 years ago

Hi,

On MacOs 10.15.7 / Node 15.0.1 / npm@7.0.3 and npm@6.14.8, when i run build.sh, I run into circular dependencies.

audited 37 packages in 0.566s
found 0 vulnerabilities

npm WARN cloudfront-auth-build@1.0.0 No repository field.

audited 49 packages in 0.635s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
>: Enter distribution name:  (node:32019) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:32019) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
...
tens more of these
...
(node:32019) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

How can I fix this?

ArtFlag commented 3 years ago

You can fix this by reading the docs 😆 I would suggest moving up the requirements section to the top 👍