Commit cb74f55a by Ben Patterson

Merge pull request #4828 from edx/benp/workaround-npm-error

Paver: Check for the npm registry and set it if necessary.
parents 06001abc b2482f54
......@@ -102,9 +102,11 @@ def ruby_prereqs_installation():
def node_prereqs_installation():
"""
Installs Node prerequisites
Configures npm and installs Node prerequisites
"""
sh("npm config set registry {}".format(NPM_REGISTRY))
sh("test `npm config get registry` = \"{reg}\" || "
"(echo setting registry; npm config set registry"
" {reg})".format(reg=NPM_REGISTRY))
sh('npm install')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment