简体   繁体   English

npm install显示安装模块的命令,但没有新文件

[英]npm install shows command for module installed, but no new files

I added rx-angular to my npm package, and when I installed it locally, it grabbed the dependency for rx without any problem. 我在我的npm软件包中添加了rx-angular,当我在本地安装它时,它毫无问题地抓住了rx的依赖关系。 When I went to release to production, it seems to sort of work, but not completely, which confused me (error wise), forcing me to install rx manually. 当我开始发布产品时,似乎有些工作,但还不是全部,这使我感到困惑(出于错误的考虑),迫使我手动安装rx。 Obviously, one package isn't a big deal, but this doesn't seem to be the correct behavior, and I'm not sure if I'm setting up my package improperly, or some other bug I need to resolve. 显然,一个软件包没什么大不了的,但这似乎不是正确的行为,而且我不确定是否设置了不正确的软件包或需要解决的其他错误。

Here was the output of npm install on production: 这是生产中npm install的输出:

npm http GET https://registry.npmjs.org/rx-angular
npm http 200 https://registry.npmjs.org/rx-angular
npm http GET https://registry.npmjs.org/rx-angular/-/rx-angular-1.1.3.tgz
npm http 200 https://registry.npmjs.org/rx-angular/-/rx-angular-1.1.3.tgz
npm http GET https://registry.npmjs.org/rx
npm http 200 https://registry.npmjs.org/rx
rx-angular@1.1.3 node_modules/rx-angular
└── rx@4.1.0

As you can see, rx was grabbed, but then something funked up on it's install I think? 如您所见,rx被抢走了,但是我觉得它在安装时有些有趣吗? Thus the funky characters? 因此,时髦的人物? I donno, I'm not sure what went wrong, and I'm not sure how to fix it. 我不知道,我不确定出了什么问题,也不确定如何解决。 I don't have rx in my package, just rx-angular, as I try on rx-angular to knw what version of rx it needs to function. 我的包中没有rx,只有rx-angular了,因为我尝试使用rx-angular来知道它需要运行什么版本的rx。

It should be 它应该是

npm cache clean

If not, try to remove manually installed modules 如果不是,请尝试卸下手动安装的模块

rm -R node_modules/

and then 接着

npm install

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

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