简体   繁体   English

无法解析依赖树 angular tslib

[英]Could not resolve dependency tree angular tslib

npm install gives the following error (please refer the image) npm 安装出现以下错误(请参考图片)

在此处输入图像描述

cli version is Angular CLI: 9.1.8 Please help. cli 版本是 Angular CLI: 9.1.8 请帮忙。 thanks!谢谢!

so after a lot of trouble shooting, got to know that the node versions were different and conflicting.所以经过大量的故障排除后,才知道节点版本不同且相互冲突。 in the terminal, though the node version was the latest, some of the files of node older version were not deleted and hence got this error while npm install.在终端中,虽然 node 版本是最新的,但是 node 旧版本的一些文件没有被删除,因此在安装 npm 时出现此错误。 so deleted the files manually, uninstalled latest version of node.所以手动删除了文件,卸载了最新版本的节点。 reinstalled it.重新安装它。 after doing npm install --force, i got to know about the version mess.在执行 npm install --force 之后,我了解了版本混乱。 somehow, clearing the cache did not help either.不知何故,清除缓存也无济于事。 wonder why.想知道为什么。 but any how, it works now.但无论如何,它现在可以工作了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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