My package.json
dependencies looks as below:
“dependencies”: {
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"express": "^4.18.2",
"express-session": "^1.17.3",
"file-saver": "^2.0.5",
"http-status-codes": "^2.1.4",
"https-proxy-agent": "^5.0.1",
"moment": "^2.29.1",
"node-fetch": "^2.6.12",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^5.0.1",
"react-scripts": "^5.0.1",
"@svgr/webpack": "8.1.0",
"electron-to-chromium": "^1.3.137"
}
As a requirement, I need to add bundleDependencies
section, but “npm install” hangs up when I add the section in package.json
"bundleDependencies": [
"express",
"express-session",
"file-saver",
"http-status-codes",
"https-proxy-agent",
"moment",
"morgan",
"node-fetch",
"react",
"react-dom"
]
It is not able to install caniuse-lite
.
fetch GET 200 https://nexus.com/repository/npm-all/caniuse-lite 10ms
How this can be resolved?
Tried deleting node_modules and cleaning npm cache but it is still not working.
New contributor
javascript7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.