Installation error rollup -c -w

I have tried to install but i can’t get past bench start. Node exits immediately after starting listening to port 9000

9:25:51 socketio.1 | listening on *: 9000
19:25:57 worker_long.1 | 19:25:57 RQ worker u’rq:worker:instance-10.5527.long’ started, version 0.10.0
19:25:57 worker_long.1 | 19:25:57 *** Listening on long…
19:25:57 worker_long.1 | 19:25:57 Cleaning registries for queue: long
19:25:57 worker_default.1 | 19:25:57 RQ worker u’rq:worker:instance-10.5533.default’ started, version 0.10.0
19:25:57 worker_default.1 | 19:25:57 *** Listening on default…
19:25:57 worker_default.1 | 19:25:57 Cleaning registries for queue: default
19:25:57 worker_short.1 | 19:25:57 RQ worker u’rq:worker:instance-10.5552.short’ started, version 0.10.0
19:25:57 worker_short.1 | 19:25:57 *** Listening on short…
19:25:57 worker_short.1 | 19:25:57 Cleaning registries for queue: short
19:25:57 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
19:25:57 web.1 | * Restarting with inotify reloader
19:25:58 watch.1 |
19:25:58 watch.1 | > frappe@ watch /home/mansonkibe/frappe-bench/apps/frappe
19:25:58 watch.1 | > rollup -c -w
19:25:58 watch.1 |
19:25:58 watch.1 | sh: 1: rollup: not found
19:25:58 watch.1 |
19:25:58 web.1 | * Debugger is active!
19:25:58 web.1 | * Debugger PIN: 464-345-784
19:25:58 watch.1 | npm ERR! Linux 4.13.0-1011-gcp
19:25:58 watch.1 | npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “run” “watch”
19:25:58 watch.1 | npm ERR! node v6.13.0
19:25:58 watch.1 | npm ERR! npm v3.10.10
19:25:58 watch.1 | npm ERR! file sh
19:25:58 watch.1 | npm ERR! code ELIFECYCLE
19:25:58 watch.1 | npm ERR! errno ENOENT
19:25:58 watch.1 | npm ERR! syscall spawn
19:25:58 watch.1 | npm ERR! frappe@ watch: rollup -c -w
19:25:58 watch.1 | npm ERR! spawn ENOENT
19:25:58 watch.1 | npm ERR!
19:25:58 watch.1 | npm ERR! Failed at the frappe@ watch script ‘rollup -c -w’.
19:25:58 watch.1 | npm ERR! Make sure you have the latest version of node.js and npm installed.
19:25:58 watch.1 | npm ERR! If you do, this is most likely a problem with the frappe package,
19:25:58 watch.1 | npm ERR! not with npm itself.
19:25:58 watch.1 | npm ERR! Tell the author that this fails on your system:
19:25:58 watch.1 | npm ERR! rollup -c -w
19:25:58 watch.1 | npm ERR! You can get information on how to open an issue for this project with:
19:25:58 watch.1 | npm ERR! npm bugs frappe
19:25:58 watch.1 | npm ERR! Or if that isn’t available, you can get their info via:
19:25:58 watch.1 | npm ERR! npm owner ls frappe
19:25:58 watch.1 | npm ERR! There is likely additional logging output above.
19:25:58 watch.1 | npm WARN Local package.json exists, but node_modules missing, did you mean to install?

https://ibb.co/iCxTYH

Hi, please try

bench switch-to-master
bench update

@NMyshuk am getting the following error

Switching for frappe
INFO:bench.utils:git config --unset-all remote.upstream.fetch
INFO:bench.utils:git config --add remote.upstream.fetch ‘+refs/heads/:refs/remotes/upstream/
INFO:bench.utils:git fetch upstream
INFO:bench.utils:git checkout master
error: Your local changes to the following files would be overwritten by checkout:
npm-debug.log
Please, commit your changes or stash them before you can switch branches.
Aborting
Error switching to branch master for frappe
Branch master does not exist in Upstream for erpnext
()
Switched to master
Please run bench update --patch to be safe from any differences in database schema

please try

bench update --reset
bench switch-to-master

@NMyshuk now it’s upto date with master but again when i

bench start

i get the following error

x Wrote js/item-dashboard.min.js - 8.42 KB
05:40:49 watch.1 | events.js:160
05:40:49 watch.1 | throw er; // Unhandled ‘error’ event
05:40:49 watch.1 | ^
05:40:49 watch.1 |
05:40:49 watch.1 | Error: watch /home/mansonkibe/frappe-bench/apps/frappe/node_modules/core-js/es6/index.js ENOSPC
05:40:49 watch.1 | at exports._errnoException (util.js:1020:11)
05:40:49 watch.1 | at FSWatcher.start (fs.js:1451:19)
05:40:49 watch.1 | at Object.fs.watch (fs.js:1478:11)
05:40:49 watch.1 | at createFsWatchInstance (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:37:15)
05:40:49 watch.1 | at setFsWatchListener (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:80:15)
05:40:49 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:228:14)
05:40:49 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:255:21)
05:40:49 watch.1 | at FSWatcher. (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:473:21)
05:40:49 watch.1 | at FSReqWrap.oncomplete (fs.js:123:15)

please try again

bench build
bench migrate