When I do a bench update I get the following error.
Please help. Erpnext is not working anymore.
INFO:bench.utils:yarn install
yarn install v1.15.2
warning package.json: Potential typo "devdependencies", did you mean "devDependencies"?
warning Potential typo "devdependencies", did you mean "devDependencies"?
[1/4] Resolving packages...
success Nothing to install.
success Saved lockfile.
$ yarn run snyk-protect
yarn run v1.15.2
warning package.json: Potential typo "devdependencies", did you mean "devDependencies"?
$ snyk protect
/bin/sh: 1: snyk: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/benjamien/bench-repo/bench/cli.py", line 42, in cli
bench_command()
File "/home/benjamien/.local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/benjamien/.local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/benjamien/.local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/benjamien/.local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/benjamien/.local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/benjamien/bench-repo/bench/commands/update.py", line 68, in update
_update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
File "/home/benjamien/bench-repo/bench/commands/update.py", line 92, in _update
update_node_packages(bench_path=bench_path)
File "/home/benjamien/bench-repo/bench/utils.py", line 497, in update_node_packages
update_yarn_packages(bench_path)
File "/home/benjamien/bench-repo/bench/utils.py", line 510, in update_yarn_packages
exec_cmd('yarn install', cwd=app_path)
File "/home/benjamien/bench-repo/bench/utils.py", line 194, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: yarn install