Compiling OpenVidu Angular Library

Hello guys :slight_smile:

I am following these instructions (https://docs.openvidu.io/en/2.15.0/developing/#compiling-openvidu-angular-library) to customize and compile the Angular library of OpenVidu, but by running the command npm run build:openvidu-angular I get the following error:

In English it says: ā€œ.ā€ is not recognized as an internal or external command, program or executable batch file.

And this is the log:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli ā€˜C:\Program Files\nodejs\node.exeā€™,
1 verbose cli ā€˜C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.jsā€™,
1 verbose cli ā€˜runā€™,
1 verbose cli ā€˜build:openvidu-angularā€™
1 verbose cli ]
2 info using npm@6.14.5
3 info using node@v12.18.1
4 verbose run-script [
4 verbose run-script ā€˜prebuild:openvidu-angularā€™,
4 verbose run-script ā€˜build:openvidu-angularā€™,
4 verbose run-script ā€˜postbuild:openvidu-angularā€™
4 verbose run-script ]
5 info lifecycle openvidu-call@2.15.0~prebuild:openvidu-angular: openvidu-call@2.15.0
6 info lifecycle openvidu-call@2.15.0~build:openvidu-angular: openvidu-call@2.15.0
7 verbose lifecycle openvidu-call@2.15.0~build:openvidu-angular: unsafe-perm in lifecycle true
8 verbose lifecycle openvidu-call@2.15.0~build:openvidu-angular: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\OpenVidu\Test\openvidu-call\openvidu-call-front\node_modules.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Users\patar\AppData\Local\Microsoft\WindowsApps;C:\Users\patar\AppData\Local\Programs\Fiddler;C:\Users\patar\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\patar\AppData\Roaming\npm
9 verbose lifecycle openvidu-call@2.15.0~build:openvidu-angular: CWD: D:\OpenVidu\Test\openvidu-call\openvidu-call-front
10 silly lifecycle openvidu-call@2.15.0~build:openvidu-angular: Args: [
10 silly lifecycle ā€˜/d /s /cā€™,
10 silly lifecycle ā€˜node openvidu-angular-build.js && ./node_modules/@angular/cli/bin/ng build openvidu-angular --prodā€™
10 silly lifecycle ]
11 silly lifecycle openvidu-call@2.15.0~build:openvidu-angular: Returned: code: 1 signal: null
12 info lifecycle openvidu-call@2.15.0~build:openvidu-angular: Failed to exec build:openvidu-angular script
13 verbose stack Error: openvidu-call@2.15.0 build:openvidu-angular: node openvidu-angular-build.js && ./node_modules/@angular/cli/bin/ng build openvidu-angular --prod
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\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. (C:\Program Files\nodejs\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:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid openvidu-call@2.15.0
15 verbose cwd D:\OpenVidu\Test\openvidu-call\openvidu-call-front
16 verbose Windows_NT 10.0.19041
17 verbose argv ā€œC:\Program Files\nodejs\node.exeā€ ā€œC:\Program Files\nodejs\node_modules\npm\bin\npm-cli.jsā€ ā€œrunā€ ā€œbuild:openvidu-angularā€
18 verbose node v12.18.1
19 verbose npm v6.14.5
20 error code ELIFECYCLE
21 error errno 1
22 error openvidu-call@2.15.0 build:openvidu-angular: node openvidu-angular-build.js && ./node_modules/@angular/cli/bin/ng build openvidu-angular --prod
22 error Exit status 1
23 error Failed at the openvidu-call@2.15.0 build:openvidu-angular script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

It is worth mentioning that I cloned the repository at ā€œD:\OpenVidu\Testā€, then ran: cd openvidu-call/openvidu-call-front and then: npm install. Right after and in the same directory Iā€™m trying to run npm run build:openvidu-angular

Any suggestion?

Thanks in advance.

Hello,

The commands working fine in Linux. As I can see , youā€™re using Windows, so you need to edit the command to make it works in Windows.