I have created a private nexus repository to host my custom nodejs libraries. But when I publish my package, it doesn't publish any of its dependencies.
Steps:
npm set registry <registry url>
npm login
npm publish
package.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": ""
}
I get this issue when I try to install my package
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
Is there a way to publish node_modules/all transitive dependencies into nexus? (Note: I will not be having internet access in production environment. Hence I need to download all dependencies from private repo itself)