Using a npm-released version of auth0-password-policies to satisfy dependency

We use auth0-lock in our package.json and Node 8.11.4. Currently the package.json includes as a dependency:

“auth0-password-policies”: “auth0/auth0-password-policies#v1.0.1”,

Which causes NPM to pull a Git repo from GitHub.

In our build system, builds are done inside a container and are executed with an arbitrary userid (jenkins, where the numerical value varies between build nodes), that causes git clone to fail as:

npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b v1.0.1 git://github.com/auth0/auth0-password-policies.git /tmp/npmcache/_cacache/tmp/git-clone-af21716e
npm ERR! warning: templates not found /tmp/pacote-git-template-tmp/git-clone-e067a198
npm ERR! fatal: unable to look up current user in the passwd file: no such user

Anyone know the reason auth0-lock uses a reference to a source branch and not a versioned dependency? There is a new Issue filed on GitHub

The reason for what you’re experiencing is due to the docker container not having git installed, as referenced in another issue about this:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.