简体   繁体   中英

I get “Invalid” for @angular/common@9.1.0-next.4 while running “npm ls rxjs”. How can I fix this?

When I run "npm ls rxjs" I get this:

+-- @angular-devkit/core@9.1.0-next.3
| `-- rxjs@6.5.4 deduped
+-- @angular/cli@9.1.13
| +-- @angular-devkit/core@9.1.13
| | `-- rxjs@6.5.4 deduped
| +-- @angular-devkit/schematics@9.1.13
| | +-- @angular-devkit/core@9.1.13
| | | `-- rxjs@6.5.4 deduped
| | `-- rxjs@6.5.4 deduped
| +-- @schematics/angular@9.1.13
| | `-- @angular-devkit/core@9.1.13
| |   `-- rxjs@6.5.4 deduped
| +-- @schematics/update@0.901.13
| | +-- @angular-devkit/core@9.1.13
| | | `-- rxjs@6.5.4 deduped
| | `-- rxjs@6.5.4 deduped
| `-- inquirer@7.1.0
|   `-- rxjs@6.5.4 deduped
+-- @angular/common@9.1.0-next.4 invalid
| `-- rxjs@6.5.4 deduped
...

What does invalid means and how can I fix invalid packages?

Try removing package-lock.json file (if it exists in your root folder) and delete the entire node_modules folder. Then try to run npm install again. Now see that whether it resolves your issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM