npm-deprecated-check icon indicating copy to clipboard operation
npm-deprecated-check copied to clipboard

Application crushes when encounters packages hosted on a private npm server

Open AlekseyMalakhov opened this issue 5 months ago • 1 comments

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>

AlekseyMalakhov avatar Sep 16 '24 13:09 AlekseyMalakhov