NPM error after creating an app

While I’m not 100% sure they are related, I am having an issue with rollup after creating a new app from bench. This has happened twice, but I’m not keen to repeat it since it has cost me three days of lost time in attempted fixes and re-installs.

Here’s the log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'watch' ]
2 info using npm@3.10.10
3 info using node@v6.13.0
4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle frappe@~prewatch: frappe@
6 silly lifecycle frappe@~prewatch: no script for prewatch, continuing
7 info lifecycle frappe@~watch: frappe@
8 verbose lifecycle frappe@~watch: unsafe-perm in lifecycle true
9 verbose lifecycle frappe@~watch: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/tyler/frappe-bench/apps/frappe/node_modules/.bin:/home/tyler/bin:/home/tyler/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle frappe@~watch: CWD: /home/tyler/frappe-bench/apps/frappe
11 silly lifecycle frappe@~watch: Args: [ '-c', 'rollup -c -w' ]
12 silly lifecycle frappe@~watch: Returned: code: 1  signal: null
13 info lifecycle frappe@~watch: Failed to exec watch script
14 verbose stack Error: frappe@ watch: `rollup -c -w`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:920:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid frappe@
16 verbose cwd /home/tyler/frappe-bench/apps/frappe
17 error Linux 4.4.0-116-generic
18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "watch"
19 error node v6.13.0
20 error npm  v3.10.10
21 error code ELIFECYCLE
22 error frappe@ watch: `rollup -c -w`
22 error Exit status 1
23 error Failed at the frappe@ watch script 'rollup -c -w'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the frappe package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     rollup -c -w
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs frappe
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls frappe
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]