我创建了一个私有的 nexus 存储库来托管我的自定义 nodejs 库。但是当我发布我的包时,它不会发布任何依赖项。
脚步:
npm set registry <registry url>
npm login
npm publish
包.json
{
"name": "testpackage",
"version": "1.0.0",
"private": false,
"dependencies": {
"request": "^2.87.0",
"safe-access": "0.1.0",
"winston": "^2.4.2"
},
"main": "index.js",
"directories": {
"test": "tests"
},
"devDependencies": {},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
当我尝试安装我的包时遇到这个问题
npm install testpackage
npm ERR! code E404
npm ERR! 404 Not Found: ieee754@1.1.8
npm ERR! A complete log of this run can be found in:
npm ERR! /<path>/.npm/_logs/2018-10-04T11_25_36_719Z-debug.log
有没有办法将 node_modules/所有传递依赖项发布到 nexus 中?(注意:我不会在生产环境中访问互联网。因此我需要从私有仓库本身下载所有依赖项)