ITADN

[Bug] new bug after most recent update: TypeError: e.match is not a function

#1708OpenNick2bad4u 创建于 2026-05-02
N
Nick2bad4ucommented
- [X] I have searched for [similar issues](https://github.com/raineorshine/npm-check-updates/issues) --- ## Steps to Reproduce Run ncu -i .ncurc: <!-- If you use a .ncurc config file, specify it here. ncu options have a dramatic effect on its behavior. --> ```js { "$schema": "https://raw.githubusercontent.com/raineorshine/npm-check-updates/main/src/types/RunOptions.json", "cache": true, "cacheClear": false, "cacheExpiration": 60, "color": true, "concurrency": 8, "configFileName": ".ncurc.json", "configFilePath": "./", "cooldown": "15m", "deep": false, "dep": [ "prod", "dev", "optional", "packageManager" ], "deprecated": true, "doctor": false, "doctorInstall": "npm run install --force", "doctorTest": "npm run test", "enginesNode": false, "errorLevel": 1, "format": [ "group", "dep", "ownerChanged", "time", "homepage" ], "global": false, "install": "never", "interactive": true, "jsonAll": false, "jsonDeps": false, "jsonUpgraded": false, "loglevel": "warn", "mergeConfig": true, "minimal": false, "packageFile": "./package.json", "packageManager": "npm", "peer": false, "pre": false, "registry": "https://registry.npmjs.org/", "registryType": "npm", "removeRange": false, "retry": 3, "root": true, "silent": false, "target": "latest", "timeout": 0, "upgrade": true, "verbose": false, "workspaces": false } ``` Dependencies: <!-- If the suggested upgrades are not what you expect, make sure to list your package.json dependencies here so the issue can be reproduced. --> Steps: <!-- The exact steps taken to arrive at the unexpected behavior. --> ## Current Behavior <!-- Describe the existing (incorrect) behavior. --> ```pwsh Using config file C:\Repos\prettier-config-nick2bad4u\.ncurc.json Upgrading C:\Repos\prettier-config-nick2bad4u\package.json [====================] 31/31 100% Using 31 cached package versions TypeError: e.match is not a function at yn (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:5843:25) at file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:41042:36 at Array.reduce (<anonymous>) at ni.current (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:41039:30) at file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:4814:76 at wk (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:41065:5) at ln (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:41088:44) at async Qu (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:41852:21) at async jk (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/npm-check-updates/build/index.js:41998:9) Unhandled Rejection! This is a bug and should be reported: https://github.com/raineorshine/npm-check-updates/issues ``` ## Expected Behavior Updates normally. It works fine if I delete my config file.
4 条评论