mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 07:28:25 +00:00
install yarn using sudo (#574)
This commit is contained in:
parent
5d0a453ccb
commit
884c0766d2
@ -1,4 +1,4 @@
|
||||
import subprocess
|
||||
|
||||
def execute(bench_path):
|
||||
subprocess.check_output(['npm', 'install', '-g', 'yarn'])
|
||||
subprocess.check_output(['sudo', 'npm', 'install', '-g', 'yarn'])
|
@ -433,7 +433,8 @@ def update_npm_packages(bench_path='.'):
|
||||
|
||||
for app in os.listdir(apps_dir):
|
||||
app_path = os.path.join(apps_dir, app)
|
||||
exec_cmd('yarn install', cwd=app_path)
|
||||
if os.path.exists(os.path.join(app_path, 'package.json')):
|
||||
exec_cmd('yarn install', cwd=app_path)
|
||||
|
||||
|
||||
def install_requirements(pip, req_file):
|
||||
|
Loading…
x
Reference in New Issue
Block a user