mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Run npm install before npm install -g
This commit is contained in:
parent
3cb35e8679
commit
d71a75fea2
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue