Run `npm install` before `npm install -g`
@@ -63,6 +63,9 @@ def install_environment(prefix, version, additional_dependencies):
cmd_output(*cmd)
with in_env(prefix, version):
+ # https://npm.community/t/npm-install-g-git-vs-git-clone-cd-npm-install-g/5449
+ # install as if we installed from git
+ helpers.run_setup_cmd(prefix, ('npm', 'install'))
helpers.run_setup_cmd(
prefix,
('npm', 'install', '-g', '.') + additional_dependencies,
