mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fix node in no-node-case...again.
This commit is contained in:
parent
5a0d35d389
commit
460582dacd
1 changed files with 4 additions and 5 deletions
|
|
@ -38,13 +38,12 @@ def install_environment(repo_cmd_runner):
|
||||||
with clean_path_on_failure(repo_cmd_runner.path(ENVIRONMENT_DIR)):
|
with clean_path_on_failure(repo_cmd_runner.path(ENVIRONMENT_DIR)):
|
||||||
# Try and use the system level node executable first
|
# Try and use the system level node executable first
|
||||||
try:
|
try:
|
||||||
|
with clean_path_on_failure(repo_cmd_runner.path(ENVIRONMENT_DIR)):
|
||||||
python_env.run(
|
python_env.run(
|
||||||
'nodeenv -n system {{prefix}}{0}'.format(ENVIRONMENT_DIR),
|
'nodeenv -n system {{prefix}}{0}'.format(ENVIRONMENT_DIR),
|
||||||
)
|
)
|
||||||
except CalledProcessError:
|
except CalledProcessError:
|
||||||
# TODO: log failure here
|
# TODO: log failure here
|
||||||
# cleanup
|
|
||||||
# TODO: local.path(ENVIRONMENT_DIR).delete()
|
|
||||||
python_env.run(
|
python_env.run(
|
||||||
'nodeenv --jobs 4 {{prefix}}{0}'.format(ENVIRONMENT_DIR),
|
'nodeenv --jobs 4 {{prefix}}{0}'.format(ENVIRONMENT_DIR),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue