当我尝试通过npm显示已安装的依赖项时出现错误

时间:2020-03-30 15:11:51

标签: javascript node.js npm dependencies

一旦我输入以下命令npm list -g --depth=0,我就会得到以下结果:

npm list -g --depth=0
/usr/lib
├── create-react-app@3.4.1
├── node-gyp@6.1.0
├── nodemon@2.0.2
├── npm@6.14.4
└── semver@7.1.3


npm ERR! missing: semver@^5.7.1, required by node-gyp@6.1.0
npm ERR! missing: node-gyp@^5.1.0, required by npm@6.14.4
npm ERR! missing: semver@^5.7.1, required by npm@6.14.4
npm ERR! missing: semver@2.x || 3.x || 4 || 5, required by init-package-json@1.10.3
npm ERR! missing: semver@^5.5.1, required by libnpmpublish@1.1.2
npm ERR! missing: semver@^5.5.0, required by cross-spawn@6.0.5
npm ERR! missing: semver@^5.4.1, required by lock-verify@2.1.0
npm ERR! missing: semver@2 || 3 || 4 || 5, required by normalize-package-data@2.5.0
npm ERR! missing: semver@^2.3.0 || 3.x || 4 || 5, required by npm-install-checks@3.0.2
npm ERR! missing: node-gyp@^5.0.2, required by npm-lifecycle@3.1.4
npm ERR! missing: semver@^5.6.0, required by npm-package-arg@6.1.1
npm ERR! missing: semver@^5.4.1, required by npm-pick-manifest@3.0.2
npm ERR! missing: semver@^5.6.0, required by pacote@9.5.12
npm ERR! missing: semver@2 || 3 || 4 || 5, required by read-installed@4.0.3
npm ERR! missing: semver@^5.1.0, required by package-json@4.0.1
npm ERR! missing: semver@^5.0.3, required by semver-diff@2.1.0

0 个答案:

没有答案