在我的工作中,我的package-lock.json具有所有依赖项下载和内部url。我正在尝试在travis.ci服务器上运行我的项目,但是由于无法访问这些资源,因此构建失败。
例如:
{
"name": "project",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@babel/cli": {
"version": "7.0.0-beta.41",
"resolved": "https://packages.INTERNALWORK.com/npm/npm/@babel/cli/-/cli-7.0.0-beta.41.tgz",
"integrity": "sha1-2fqddfsf2FdMwIi3a/B8g2UY=",
"dev": true,
"requires": {
"chokidar": "1.7.0",
"commander": "2.20.0",
"convert-source-map": "1.6.0",
"fs-readdir-recursive": "1.1.0",
"glob": "7.1.4",
"lodash": "4.17.11",
"output-file-sync": "2.0.1",
"slash": "1.0.0",
"source-map": "0.5.7"
}
},
我不应该编辑package-lock.json文件。我可以定义第二个使用或告诉Travis.io在哪里下载软件包吗?