【发布时间】:2020-05-06 03:30:00
【问题描述】:
当我运行npm start
我明白了
ERROR TypeError: Cannot read property 'version' of undefined
TypeError: Cannot read property 'version' of undefined
这发生在我跑步之后
npm install
我试图通过运行npm -g install npm@version 来解决这个问题,但它却给了我这个错误
npm ERR! code ETARGET
npm ERR! notarget No matching version found for npm@version.
【问题讨论】:
-
这似乎是 npm 版本控制问题。观看此视频:github.com/tjunnone/npm-check-updates/issues/608
-
但是当我检查日志时被告知 {error code ELIFECYCLE}