-
Notifications
You must be signed in to change notification settings - Fork 354
Description
- I have searched for similar issues
Steps to Reproduce
just run npx npm-check-updates on a working angular project that needs updates of some packages.
Steps:
npx npm-check-updates -u
Current Behavior
When there is any update, at the end it shows the following message:
TypeError [ERR_INVALID_ARG_TYPE]: The "paths[0]" argument must be of type string. Received undefined
at Object.resolve (node:path:213:9)
at fS (C:\Users\xxxx\AppData\Local\npm-cache_npx\0a80f0fb114540fe\node_modules\npm-check-updates\build\index.js:645:859)
at rP (C:\Users\xxxx\AppData\Local\npm-cache_npx\0a80f0fb114540fe\node_modules\npm-check-updates\build\index.js:645:1239)
at nP (C:\Users\xxxx\AppData\Local\npm-cache_npx\0a80f0fb114540fe\node_modules\npm-check-updates\build\index.js:647:84) {
code: 'ERR_INVALID_ARG_TYPE'
}
Unhandled Rejection! This is a bug and should be reported: https://github.com/raineorshine/npm-check-updates/issues
The package.json is updated correctly, just the error message appears at the end of the process.
Expected Behavior
Just do the updates, without the error:
[====================] 37/37 100%
@angular-devkit/build-angular ~20.3.1 → ~20.3.3
@angular/animations ~20.3.0 → ~20.3.2
@angular/cli ~20.3.1 → ~20.3.3
@angular/common ~20.3.0 → ~20.3.2
@angular/compiler ~20.3.0 → ~20.3.2
@angular/compiler-cli ~20.3.0 → ~20.3.2
@angular/core ~20.3.0 → ~20.3.2
@angular/forms ~20.3.0 → ~20.3.2
@angular/platform-browser ~20.3.0 → ~20.3.2
@angular/platform-browser-dynamic ~20.3.0 → ~20.3.2
@angular/router ~20.3.0 → ~20.3.2
@eslint/js ^9.35.0 → ^9.36.0
@types/node ^24.5.0 → ^24.5.2
@typescript-eslint/eslint-plugin 8.44.0 → 8.44.1
@typescript-eslint/parser 8.44.0 → 8.44.1
eslint ^9.35.0 → ^9.36.0