Please, how to fix this error, it happened during the updating bench.
smic@smicg:/home/frappe/frappe-bench$ sudo bench update --reset
[sudo] Mot de passe de smic :
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
INFO:bench.app:pulling frappe
INFO:bench.utils:git fetch --all
Récupération de upstream
INFO:bench.utils:git reset --hard upstream/master
HEAD est maintenant à dd2c33e Merge branch ‘hotfix’
INFO:bench.utils:find . -name “.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git fetch --all
Récupération de upstream
INFO:bench.utils:git reset --hard upstream/master
HEAD est maintenant à a02d5d1 Merge branch ‘hotfix’
INFO:bench.utils:find . -name ".pyc” -delete
Updating Python libraries…
INFO:bench.utils:./env/bin/pip install --upgrade pip==9.0.3
Requirement already up-to-date: pip==9.0.3 in ./env/lib/python2.7/site-packages
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/.bench/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
Updating node packages…
INFO:bench.utils:npm install
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/agent-base/node_modules/semver
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/agent-base
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/browser-stdout
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/diff
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/ejs
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/graceful-readlink
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/commander
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/growl
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/has-flag
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/http-proxy-agent
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/https-proxy-agent
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/ip
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/json3
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/jsonify
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/json-stable-stringify
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/ajv
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/assert-plus
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/aws-sign2
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/form-data
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/har-schema
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/har-validator
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/hoek
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/boom
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/cryptiles
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/http-signature
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/performance-now
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/qs
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/sntp
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/hawk
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules/request
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash._basecreate
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash._stack
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash.defaultsdeep/node_modules/lodash._baseclone
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash.create
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash.keysin
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash.mergewith
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash.rest
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash.defaultsdeep
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lru-cache
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/mocha-nightwatch/node_modules/glob
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/mocha-nightwatch/node_modules/ms
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/mocha-nightwatch/node_modules/debug
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/mocha-nightwatch/node_modules/supports-color
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/mocha-nightwatch
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/pac-resolver/node_modules/co
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/q
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/socks/node_modules/ip
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/socks-proxy-agent
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/pac-resolver
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/pac-proxy-agent
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/proxy-agent
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/nightwatch
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/assertion-error
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/agent-base/node_modules
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/less/node_modules
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/lodash.defaultsdeep/node_modules
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/mocha-nightwatch/node_modules
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/nightwatch/node_modules
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/pac-resolver/node_modules
npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/socks/node_modules
npm WARN frappe@ No description
npm ERR! path /home/frappe/frappe-bench/node_modules/agent-base/node_modules/semver
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access ‘/home/frappe/frappe-bench/node_modules/agent-base/node_modules/semver’
npm ERR! { Error: EACCES: permission denied, access ‘/home/frappe/frappe-bench/node_modules/agent-base/node_modules/semver’
npm ERR! stack: ‘Error: EACCES: permission denied, access '/home/frappe/frappe-bench/node_modules/agent-base/node_modules/semver'’,
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘access’,
npm ERR! path: ‘/home/frappe/frappe-bench/node_modules/agent-base/node_modules/semver’ }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /home/frappe/.npm/_logs/2018-06-06T10_05_08_013Z-debug.log
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/update.py”, line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
File “/home/frappe/.bench/bench/commands/update.py”, line 77, in _update
update_node_packages(bench_path=bench_path)
File “/home/frappe/.bench/bench/utils.py”, line 441, in update_node_packages
update_npm_packages(bench_path)
File “/home/frappe/.bench/bench/utils.py”, line 488, in update_npm_packages
exec_cmd(‘npm install’, cwd=bench_path)
File “/home/frappe/.bench/bench/utils.py”, line 153, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: npm install