简体   繁体   English

安装的npm模块不可见

[英]Installed npm module is not visible

I have installed the module in my project, but it does not found. 我已经在我的项目中安装了该模块,但是找不到。 How to fix it? 如何解决?

在此处输入图片说明

I have found the resolution. 我找到了解决方案。 In package.json for the version I removed char '^' and reinstall all packages with 'npm install'. 在该版本的package.json中,我删除了char'^'并使用'npm install'重新安装了所有软件包。

"angular2-infinite-scroll": "^0.3.4" ==> "angular2-infinite-scroll": "0.3.4" “ angular2-infinite-scroll”:“ ^ 0.3.4” ==>“ angular2-infinite-scroll”:“ 0.3.4”

I think the problem was that the package was installed "0.3.43", but the system was looking for "0.3.4". 我认为问题在于该软件包已安装“ 0.3.43”,但是系统正在寻找“ 0.3.4”。 Am I right? 我对吗?

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

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