npm-deprecated-check
npm-deprecated-check copied to clipboard
Application crushes when encounters packages hosted on a private npm server
Our application has several locally developed npm packages which are hosted on our local npm repository. It would be nice if NDC simply skip packages which are not available on https://www.npmjs.com (with some warning of course). For now it crushes with something like this
C:\Users\a.malakhov\Desktop\vega_front\vega-front-shell>ndc current
- Checkingfile:///C:/Users/a.malakhov/AppData/Roaming/nvm/v16.20.2/node_modules/npm-deprecated-check/dist/cli.mjs:197 if (!version || !packageRes.versions[version]) ^
TypeError: Cannot read properties of undefined (reading '1.37.4') at getPackageInfo (file:///C:/Users/a.malakhov/AppData/Roaming/nvm/v16.20.2/node_modules/npm-deprecated-check/dist/cli.mjs:197:39) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async checkDependencies (file:///C:/Users/a.malakhov/AppData/Roaming/nvm/v16.20.2/node_modules/npm-deprecated-check/dist/cli.mjs:164:20)
C:\Users\a.malakhov\Desktop\vega_front\vega-front-shell>