NPM модуль "звук-игра" сломан - PullRequest
0 голосов
/ 23 января 2020

После обновления NodeJS с 12.13 по 12.14 модуль «воспроизведения звука» больше не работает. До обновления все работало ок. Есть идеи, пожалуйста?

PS Win10 x64 LTS C 1809 17763, глоток 4, ПУТЬ в порядке ...

C:\xampp\htdocs\wordpress_tp\wp-content\themes>gulp sound
[17:40:33] Using gulpfile C:\xampp\htdocs\wordpress_tp\wp-content\themes\gulpfile.js
[17:40:33] Starting 'sound'...
[17:40:33] Finished 'sound' after 10 ms
(node:3888) UnhandledPromiseRejectionWarning: Error: Command failed: powershell -c Add-Type -AssemblyName presentationCore; $player = New-Object system.windows.media.mediaplayer; $player.open('C:\xampp\htdocs\wordpress_tp\wp-content\themes\notification.mp3'); $player.Play(); Start-Sleep 1; Start-Sleep -s $player.NaturalDuration.TimeSpan.TotalSeconds;Exit;
"powershell" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.

    at ChildProcess.exithandler (child_process.js:295:12)
    at ChildProcess.emit (events.js:223:5)
    at ChildProcess.EventEmitter.emit (domain.js:498:23)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
(node:3888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3888) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
...