【问题标题】:Why do I get this error when installing the NestJS Client?为什么我在安装 NestJS 客户端时会收到此错误?
【发布时间】:2021-12-09 06:13:34
【问题描述】:

我在尝试安装nestjs客户端时出现以下错误,老实说我不明白这个错误。

PS C:\Users\meuser> npm i -g @nestjs/cli
    npm ERR! code ETARGET
    npm ERR! notarget No matching version found for @angular-devkit/core@12.2.10.
    npm ERR! notarget In most cases you or one of your dependencies are requesting
    npm ERR! notarget a package version that doesn't exist.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\meuser\AppData\Local\npm-cache\_logs\2021-10-22T15_23_52_127Z-debug.log

在这里,我保留了我的版本和安装的软件包。但是不知道为什么在安装中找不到包https://www.npmjs.com/package/@angular-devkit/core/v/12.2.10

PS C:\Users\meuser> npm -v
7.24.1
PS C:\Users\meuser> node -v
v12.18.4
PS C:\Users\meuser> npm list -g
C:\Users\meuser\AppData\Roaming\npm
+-- @angular/cli@12.2.7
+-- @vue/cli@4.5.13
+-- create-react-app@3.4.1
+-- npm@7.24.1
+-- typescript@4.4.3
+-- vsts-npm-auth@0.41.0
`-- yarn@1.22.11

【问题讨论】:

  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: javascript node.js npm nestjs


【解决方案1】:

我不得不重新安装nodejs,它解决了问题

【讨论】:

    【解决方案2】:

    你能显示你的节点版本吗? 此外,一种解决方法可能是将@angular-devkit/core@12.2.10 更改为@angular-devkit/core。这将尝试找到与您的环境细节匹配的依赖项版本。

    【讨论】:

      猜你喜欢
      • 2021-06-06
      • 1970-01-01
      • 1970-01-01
      • 2018-06-22
      • 2016-01-01
      • 1970-01-01
      • 2020-11-08
      相关资源
      最近更新 更多