CADViewer Technical Documentation, Installation Guide and Reference Samples Library

npm install - Getting an unknown git error..

If installing CADViewer through npm

npm i cadviewer

If, during installation, getting an “An unknown git error occurred” for unsupported option “accept-new”, then the issue is the SSH key, which in some environments can be troublesome to set up. To bypass this (on Windows/MAC/Linux) simply run:

git config --global url."https://".insteadOf git://

This forces the use of https instead of SSH and will then be successful in installing CADViewer through npm.

Last updated on 2 Mar 2022
Published on 12 Apr 2020