NPM error "npm Cannot read property 'length' of undefined" 发表于 2019-05-28 更新于 2024-09-04 分类于 JavaScript 问题 出现错误版本npm 6.9.0 12npm -g outdated# 检测所有全局依赖包更新情况 报错显示 修复方法12345678// 148行var columns = [ depname, has || "MISSING", want, latest, deppath || "global" // 此处修改为这样] 参考资料 “npm-outdated-throw-an-error-cannot-read-property-length-of-undefined” “npm Cannot read property ‘length’ of undefined”