Installing sample-app-web gives error

Description
The websdk installation following the 4 steps for local version:


It gets the following error on ubntu 16.04.

Error
npm run https

websdk-local@1.7.4 https /var/www/staging/html/live2/sample-app-web/Local
set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https true --open https://localhost:9999/ --watch

:information_source: 「wds」: Project is running at https://0.0.0.0:9999/
:information_source: 「wds」: webpack output is served from /static
:information_source: 「wds」: Content not from webpack is served from /var/www/staging/html/live2/sample-app-web/Local
events.js:174
throw er; // Unhandled ‘error’ event
^

Error: spawn https://localhost:9999/ ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Emitted ‘error’ event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
[… lines matching original stack trace …]
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-local@1.7.4 https: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https true --open https://localhost:9999/ --watch
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websdk-local@1.7.4 https script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-04-08T10_35_24_001Z-debug.log

Which version?
Sample web app latest version using the websdk 1.7.4.

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. git clone https://github.com/zoom/sample-app-web.git --branch master --depth 1
  2. cd sample-app-web/Local
  3. npm install
  4. npm run start

Additional context
This is just the basic installation of the sample-web-app. I can’t get past this simple step.

Hey @ZoomFan,

Can you try running $ npm run start and see if that works?

Thanks,
Tommy

Hi @tommy,

Yes. I’ve tried that as well. It unfortunately gives the same result. Any other direction?
(I obviously can’t show everything, but I’ve tried quite a lot of things to get this to work.)

Also, I’m doing this to upgrade to the latest version. I’ve had this running successfully for half a year. The old version still works fine besides the alert for which the upgrade is required.

Here are the results from npm run start:
# npm run start
> websdk-local@1.7.5 start /var/www/staging/html/live/sample-app-web/Local
> set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch

ℹ 「wds」: Project is running at http://0.0.0.0:9999/
ℹ 「wds」: webpack output is served from /static
ℹ 「wds」: Content not from webpack is served from /var/www/staging/html/live/sample-app-web/Local
events.js:287
      throw er; // Unhandled 'error' event
      ^

Error: spawn http://localhost:9999/index.html ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn http://localhost:9999/index.html',
  path: 'http://localhost:9999/index.html',
  spawnargs: [ 'http://0.0.0.0:9999/' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-local@1.7.5 start: `set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the websdk-local@1.7.5 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-12T19_35_29_497Z-debug.log

And here is the error debug log file:

# cat /root/.npm/_logs/2020-04-12T19_35_29_497Z-debug.log

0 info it worked if it ends with ok

1 verbose cli [

1 verbose cli '/root/.nvm/versions/node/v12.16.2/bin/node',

1 verbose cli '/root/.nvm/versions/node/v12.16.2/bin/npm',

1 verbose cli 'run',

1 verbose cli 'start'

1 verbose cli ]

2 info using npm@6.14.4

3 info using node@v12.16.2

4 verbose run-script [ 'prestart', 'start', 'poststart' ]

5 info lifecycle websdk-local@1.7.5~prestart: websdk-local@1.7.5

6 info lifecycle websdk-local@1.7.5~start: websdk-local@1.7.5

7 verbose lifecycle websdk-local@1.7.5~start: unsafe-perm in lifecycle true

8 verbose lifecycle websdk-local@1.7.5~start: PATH: /root/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/staging/html/live/sample-app-web/Local/node_modules/.bin:/root/bin:/root/.nvm/versions/node/v12.16.2/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

9 verbose lifecycle websdk-local@1.7.5~start: CWD: /var/www/staging/html/live/sample-app-web/Local

10 silly lifecycle websdk-local@1.7.5~start: Args: [

10 silly lifecycle '-c',

10 silly lifecycle 'set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch'

10 silly lifecycle ]

11 silly lifecycle websdk-local@1.7.5~start: Returned: code: 1 signal: null

12 info lifecycle websdk-local@1.7.5~start: Failed to exec start script

13 verbose stack Error: websdk-local@1.7.5 start: `set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch`

13 verbose stack Exit status 1

13 verbose stack at EventEmitter.<anonymous> (/root/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)

13 verbose stack at EventEmitter.emit (events.js:310:20)

13 verbose stack at ChildProcess.<anonymous> (/root/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)

13 verbose stack at ChildProcess.emit (events.js:310:20)

13 verbose stack at maybeClose (internal/child_process.js:1021:16)

13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

14 verbose pkgid websdk-local@1.7.5

15 verbose cwd /var/www/staging/html/live/sample-app-web/Local

16 verbose Linux 4.4.0-159-generic

17 verbose argv "/root/.nvm/versions/node/v12.16.2/bin/node" "/root/.nvm/versions/node/v12.16.2/bin/npm" "run" "start"

18 verbose node v12.16.2

19 verbose npm v6.14.4

20 error code ELIFECYCLE

21 error errno 1

22 error websdk-local@1.7.5 start: `set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch`

22 error Exit status 1

23 error Failed at the websdk-local@1.7.5 start script.

23 error This is probably not a problem with npm. There is likely additional logging output above.

24 verbose exit [ 1, true ]

Also, a lot of optional dependencies weren’t installed:

# npm install

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> core-js@2.6.11 postinstall /var/www/staging/html/live/sample-app-web/Local/node_modules/core-js

> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 

> https://opencollective.com/core-js 

> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js-pure@3.6.5 postinstall /var/www/staging/html/live/sample-app-web/Local/node_modules/core-js-pure

> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 

> https://opencollective.com/core-js 

> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm notice created a lockfile as package-lock.json. You should commit this file.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm WARN eslint-config-airbnb@17.1.1 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.

npm WARN eslint-config-airbnb-base@13.2.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none is installed. You must install peer dependencies yourself.

npm WARN websdk-local@1.7.5 No repository field.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: abbrev@1.1.1 (node_modules/fsevents/node_modules/abbrev):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/abbrev' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.abbrev.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules/fsevents/node_modules/ansi-regex):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/ansi-regex' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.ansi-regex.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aproba@1.2.0 (node_modules/fsevents/node_modules/aproba):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/aproba' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.aproba.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: balanced-match@1.0.0 (node_modules/fsevents/node_modules/balanced-match):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/balanced-match' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.balanced-match.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chownr@1.1.4 (node_modules/fsevents/node_modules/chownr):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/chownr' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.chownr.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: code-point-at@1.1.0 (node_modules/fsevents/node_modules/code-point-at):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/code-point-at' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.code-point-at.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: concat-map@0.0.1 (node_modules/fsevents/node_modules/concat-map):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/concat-map' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.concat-map.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: console-control-strings@1.1.0 (node_modules/fsevents/node_modules/console-control-strings):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/console-control-strings' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.console-control-strings.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: core-util-is@1.0.2 (node_modules/fsevents/node_modules/core-util-is):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/core-util-is' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.core-util-is.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: deep-extend@0.6.0 (node_modules/fsevents/node_modules/deep-extend):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/deep-extend' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.deep-extend.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: delegates@1.0.0 (node_modules/fsevents/node_modules/delegates):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/delegates' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.delegates.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: detect-libc@1.0.3 (node_modules/fsevents/node_modules/detect-libc):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/detect-libc' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.detect-libc.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs.realpath@1.0.0 (node_modules/fsevents/node_modules/fs.realpath):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/fs.realpath' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.fs.realpath.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: has-unicode@2.0.1 (node_modules/fsevents/node_modules/has-unicode):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/has-unicode' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.has-unicode.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: inherits@2.0.4 (node_modules/fsevents/node_modules/inherits):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/inherits' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.inherits.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ini@1.3.5 (node_modules/fsevents/node_modules/ini):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/ini' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.ini.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: isarray@1.0.0 (node_modules/fsevents/node_modules/isarray):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/isarray' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.isarray.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.5 (node_modules/fsevents/node_modules/minimist):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/minimist' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.minimist.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.1.2 (node_modules/fsevents/node_modules/ms):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/ms' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.ms.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-normalize-package-bin@1.0.1 (node_modules/fsevents/node_modules/npm-normalize-package-bin):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: number-is-nan@1.0.1 (node_modules/fsevents/node_modules/number-is-nan):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/number-is-nan' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.number-is-nan.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-assign@4.1.1 (node_modules/fsevents/node_modules/object-assign):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/object-assign' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.object-assign.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-homedir@1.0.2 (node_modules/fsevents/node_modules/os-homedir):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/os-homedir' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.os-homedir.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-tmpdir@1.0.2 (node_modules/fsevents/node_modules/os-tmpdir):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/os-tmpdir' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.os-tmpdir.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: path-is-absolute@1.0.1 (node_modules/fsevents/node_modules/path-is-absolute):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/path-is-absolute' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.path-is-absolute.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: process-nextick-args@2.0.1 (node_modules/fsevents/node_modules/process-nextick-args):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/process-nextick-args' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.process-nextick-args.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.1.2 (node_modules/fsevents/node_modules/safe-buffer):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/safe-buffer' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.safe-buffer.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safer-buffer@2.1.2 (node_modules/fsevents/node_modules/safer-buffer):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/safer-buffer' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.safer-buffer.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sax@1.2.4 (node_modules/fsevents/node_modules/sax):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/sax' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.sax.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semver@5.7.1 (node_modules/fsevents/node_modules/semver):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/semver' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.semver.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: set-blocking@2.0.0 (node_modules/fsevents/node_modules/set-blocking):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/set-blocking' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.set-blocking.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: signal-exit@3.0.2 (node_modules/fsevents/node_modules/signal-exit):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/signal-exit' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.signal-exit.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules/fsevents/node_modules/strip-json-comments):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/strip-json-comments' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.strip-json-comments.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util-deprecate@1.0.2 (node_modules/fsevents/node_modules/util-deprecate):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/util-deprecate' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.util-deprecate.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrappy@1.0.2 (node_modules/fsevents/node_modules/wrappy):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/wrappy' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.wrappy.DELETE'

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: yallist@3.1.1 (node_modules/fsevents/node_modules/yallist):

npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/yallist' -> '/var/www/staging/html/live/sample-app-web/Local/node_modules/fsevents/node_modules/.yallist.DELETE'

added 926 packages from 473 contributors and audited 14751 packages in 21.186s

38 packages are looking for funding

run `npm fund` for details

found 0 vulnerabilities

I tried the same thing on ubuntu 18.04 and still the same errors. Please advise.

The new version (1.7.4, aka the breaking version) seems to overload the inotify watchers limit that is preset on ubuntu.

This seems to resolve the issue:
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details

Please follow the instructions at that link, but in case that link doesn’t work, here are the commands to fix it:

# echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
# sudo sysctl -p

Hope this is helpful to someone else.

1 Like

Thanks for posting your solution @ZoomFan! Happy to hear you got it working! :slight_smile:

-Tommy

Hi folks,

I’ve got the error on Ubuntu 18.04-4 LTS with inotify watchers set to 1048576. Is here any other thing that I should consider?

I am using version 1.7.6 sample websdk.

When I was dealing with this installation, I got a lot of errors that all looked similar and had to debug them one at a time. What is the exact error you are getting?

Also, did you look at the debug log file at the end of the error to see if there were any clues in there?

I am getting the same error what you got (12 days ago).

Here is the error debug log file:

0 info it worked if it ends with ok

1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘start’ ]
2 info using npm@6.14.4
3 info using node@v12.16.2
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle websdk-local@1.7.6~prestart: websdk-local@1.7.6
6 info lifecycle websdk-local@1.7.6~start: websdk-local@1.7.6
7 verbose lifecycle websdk-local@1.7.6~start: unsafe-perm in lifecycle true
8 verbose lifecycle websdk-local@1.7.6~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/enrique/projects/sample-app-web/Local/node_modules/.bin:/home/enrique/.local/bin:/home/enrique/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle websdk-local@1.7.6~start: CWD: /home/enrique/projects/sample-app-web/Local
10 silly lifecycle websdk-local@1.7.6~start: Args: [
10 silly lifecycle ‘-c’,
10 silly lifecycle ‘set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch’
10 silly lifecycle ]
11 silly lifecycle websdk-local@1.7.6~start: Returned: code: 1 signal: null
12 info lifecycle websdk-local@1.7.6~start: Failed to exec start script
13 verbose stack Error: websdk-local@1.7.6 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open [http://localhost:9999/index.html](http://localhost:9999/index.html) --watch
13 verbose stack Exit status 113 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:310:20)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:310:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

14 verbose pkgid websdk-local@1.7.6
15 verbose cwd /home/enrique/projects/sample-app-web/Local
16 verbose Linux 4.15.0-96-generic
17 verbose argv “/usr/bin/node” “/usr/bin/npm” “run” “start”
18 verbose node v12.16.2
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error websdk-local@1.7.6 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open [http://localhost:9999/index.html](http://localhost:9999/index.html) --watch
22 error Exit status 1
23 error Failed at the websdk-local@1.7.6 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Hey @emadridm,

What script are you running that throws this error?

Did you try what @ZoomFan suggested above?

Checkout this thread:

Thanks,
Tommy

Hi everyone!
I’m getting the same error when trying to install the Local Sample
I’ve followed this link’s instructions.
https://marketplace.zoom.us/docs/sdk/native-sdks/web/reference
I’ve added my key and secret string (Developer Marketplace) on index.js
Then I’ve tried:

npm install @zoomus/websdk@1.7.6

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf

sudo sysctl -p

npm install http-server -g

but I’m still gettings these errors

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-local@1.7.6 https: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https true --open https://localhost:9999/index.html --watch
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websdk-local@1.7.6 https script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-05-01T19_03_15_092Z-debug.log

Hey @s6pamend,

Can you try just running http-server and navigating to the localhost url?

Thanks,
Tommy

Hi All,

I’m also getting the same error in Ubuntu.

Ubuntu version 18.04.4 LTS

0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘start’ ]
2 info using npm@6.14.4
3 info using node@v13.14.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle websdk-local@1.7.8~prestart: websdk-local@1.7.8
6 info lifecycle websdk-local@1.7.8~start: websdk-local@1.7.8
7 verbose lifecycle websdk-local@1.7.8~start: unsafe-perm in lifecycle true
8 verbose lifecycle websdk-local@1.7.8~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/anusha/Downloads/Local/Local/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle websdk-local@1.7.8~start: CWD: /home/anusha/Downloads/Local/Local
10 silly lifecycle websdk-local@1.7.8~start: Args: [
10 silly lifecycle ‘-c’,
10 silly lifecycle ‘set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch’
10 silly lifecycle ]
11 silly lifecycle websdk-local@1.7.8~start: Returned: code: 1 signal: null
12 info lifecycle websdk-local@1.7.8~start: Failed to exec start script
13 verbose stack Error: websdk-local@1.7.8 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1026:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid websdk-local@1.7.8
15 verbose cwd /home/anusha/Downloads/Local/Local
16 verbose Linux 5.3.0-53-generic
17 verbose argv “/usr/bin/node” “/usr/bin/npm” “run” “start”
18 verbose node v13.14.0
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error websdk-local@1.7.8 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch
22 error Exit status 1
23 error Failed at the websdk-local@1.7.8 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Hey @smadamshetty,

Please provide steps to reproduce your issue.

Thanks,
Tommy

npm run start

if directly run following command on terminal then it was working

sudo webpack-dev-server --config webpack.config.dev.js --watch

1 Like

Hey @smadamshetty,

Happy to hear you got it working! We will investigate why the script was not working.

Thanks,
Tommy

I have the same issue. I am running Ubuntu 20.04. I tried running the sample app using node 14 and 10. The suggested fix results in the same error.

Traceback:

> websdk-local@1.7.9 start /home/damian/zoom/Local
> set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch

ℹ 「wds」: Project is running at http://0.0.0.0:9999/
ℹ 「wds」: webpack output is served from /static
ℹ 「wds」: Content not from webpack is served from /home/damian/zoom/Local
events.js:291
      throw er; // Unhandled 'error' event
      ^

Error: spawn http://localhost:9999/index.html ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
    at onErrorNT (internal/child_process.js:468:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
    at onErrorNT (internal/child_process.js:468:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn http://localhost:9999/index.html',
  path: 'http://localhost:9999/index.html',
  spawnargs: [ 'http://0.0.0.0:9999/' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-local@1.7.9 start: `set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the websdk-local@1.7.9 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/damian/.npm/_logs/2020-07-03T17_02_50_630Z-debug.log

Hey @damian.owerko,

Can you just try opening the index.html file to use the Web SDK?

Thanks,
Tommy

I submitted a Pull Request on Github that fixes this issue: https://github.com/zoom/sample-app-web/pull/24

Can you review this, or direct it to somebody who can?

Hey @roger,

Thanks for contributing to the Web SDK! We will review your pull request. :slight_smile: (CS-2220)

-Tommy

1 Like