为防止公司代码剽窃、图形绘制引擎包以 npm 包的形式部署在了公司私有服务器上;所以在下载时、需要先下载其他依赖包;然后将 npm 指向私服;再下载引擎包;
绘图包要和其他依赖包分开下载步骤如下:
"@persagy-web/base": "2.2.1",
"@persagy-web/big": "2.2.30",
"@persagy-web/draw": "2.2.8",
"@persagy-web/graph": "2.2.31",
npm config set registry https://registry.npmjs.org/
npm i
npm config set registry http://dev.dp.sagacloud.cn:8082/repository/npm-saga/
"@persagy-web/base": "2.2.1",
"@persagy-web/big": "2.2.30",
"@persagy-web/draw": "2.2.8",
"@persagy-web/graph": "2.2.31",
npm i
::: warning 公共包与私有包按照上述步骤分开下载;如果一起下载会引发问题 :::