Installation

Adding a Repository

C3D Web Viewer API package is distributed using a private npm repository. To install the package, firstly you should set @c3dlabs registry via:

npm config set @c3dlabs:registry https://npm.c3d.ascon.ru

If you use npm with a version above 9.x.x, then it needs to run:

npm login --registry https://npm.c3d.ascon.ru --auth-type=legacy

If you use npm with a version below 9.x.x, then it needs to run:

npm login --registry https://npm.c3d.ascon.ru

Installing the Package

Now you can simply add the ‘c3dviewer-api’ package to your project via:

npm install --save @c3dlabs/c3dviewer-api

If you install any of prerelease versions of the package like

npm install --save @c3dlabs/c3dviewer-api@1.4.0-alpha.1

you may encounter the following problem:

Could not resolve dependency: … Conflicting peer dependency: …

This is caused by dependencies which are not met with prerelease versions. In such cases, just force to install it using:

npm install --save -f @c3dlabs/c3dviewer-api@1.4.0-alpha.1