Error: missing script: test-wise5-watch

128 views
Skip to first unread message

Sushmita Saha

unread,
Feb 20, 2020, 12:06:43 PM2/20/20
to WISE-dev
Hi
I am trying to install wise using docker but it fails.This is in my npm-debug.log


0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'test-wise5-watch' ]
2 info using n...@4.0.3
3 info using no...@v6.10.0
4 verbose config Skipping project config: /home/wise/.npmrc. (matches userconfig)
5 verbose stack Error: missing script: test-wise5-watch
5 verbose stack     at run (/usr/local/lib/node_modules/npm/lib/run-script.js:151:19)
5 verbose stack     at /usr/local/lib/node_modules/npm/lib/run-script.js:61:5
5 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:356:5
5 verbose stack     at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:320:45)
5 verbose stack     at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:354:3)
5 verbose stack     at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:124:5)
5 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:311:12
5 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
5 verbose stack     at tryToString (fs.js:455:3)
5 verbose stack     at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)
6 verbose cwd /home/wise
7 error Linux 4.19.76-linuxkit
8 error argv "/usr/bin/nodejs" "/usr/local/bin/npm" "run" "test-wise5-watch"
9 error node v6.10.0
10 error npm  v4.0.3
11 error missing script: test-wise5-watch
12 error If you need help, you may report this error at:
12 error     <https://github.com/npm/npm/issues>
13 verbose exit [ 1, true ]

Hiroki Terashima

unread,
Mar 5, 2020, 4:08:00 PM3/5/20
to WISE-dev
Hi Sushmita,

Sorry- we haven't been using Docker for a long time and it is probably broken. We recommend that you setup the dev environment by following the steps on this page: https://github.com/WISE-Community/WISE/wiki/How-to-Setup-WISE-Local-Development

Thanks,
Hiroki

Brian Mickel

unread,
Mar 20, 2020, 11:35:43 AM3/20/20
to WISE-dev
I'm experiencing thes same error following the steps outlined in How-to-Setup-WISE-Local-Development: `./wise.sh dev`

package.json line 144
```
    "watch-all-wise5": "... \"npm run test-wise5-watch\"",
```
Looks like there's not a script defined in package.json with the name test-wise5-watch

It looks like test-wise5-watch was renamed to test-watch in this commit
Changing line 144 from test-wise5-watch to test-watch appears to run 388 karma tests.

Also, wise.sh line 63
```
  npm run watch-all-site&
```

Sincerely,
Brian

Hiroki Terashima

unread,
Mar 20, 2020, 12:10:29 PM3/20/20
to wise...@googlegroups.com
Hi Brian,

Welcome to the group. 

Thanks for pointing this out. Some of those commands and documentation are out of date.

"wise.sh dev" should be running "npm run watch-dev-all"

I've fixed this and made a PR https://github.com/WISE-Community/WISE/pull/2270

Thanks again,
Hiroki

--
You received this message because you are subscribed to the Google Groups "WISE-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wise-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wise-dev/daaaa2b0-c6aa-4414-b68b-3c1164864dd0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages