I am at the point where I am trying to run npm run watch in the js folder and I get the following error.
npm ERR! missing script: watch
Here is the error info from the error log. I have ran the command npm install watch. I have followed the tutorial on this site for the new setup for beta8.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'run', 'watch' ]
2 info using npm@6.5.0
3 info using node@v8.10.0
4 verbose stack Error: missing script: watch
4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:155:19)
4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:63:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:418:5
4 verbose stack at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:373:45)
4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:416:3)
4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
4 verbose stack at ReadFileContext.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:332:20)
4 verbose stack at ReadFileContext.callback (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:90:16)
4 verbose stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
5 verbose cwd /var/www/whatsonyourscrubs.local/workbench/flarum-ext-themelightshadow/js
6 verbose Linux 4.15.0-42-generic
7 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "run" "watch"
8 verbose node v8.10.0
9 verbose npm v6.5.0
10 error missing script: watch
11 verbose exit [ 1, true ]
My setup is running a virtual server with virtualbox.
Ubuntu server 18.04
Apache2
PHP7.2
Mariadb 10.3
Node 8.10.0
npm 6.5.0
It is probably something very obvious that I am missing. Any help would be greatly appreciated. Thank you.