Many unnecessary files generated by 'npm install' in root directory of app

一曲冷凌霜 提交于 2021-02-07 18:34:16

问题


Usually when I do 'npm install' inside my application directory, bunch of npm libraries files gets generated inside node_modules folder which is expected. Today suddenly I started seeing many files getting generated inside application directory and outside node_modules.

Did anyone face this issue ? and if yes - any workaround ? Screenshot attached. Lot's of .cmd file, don't know why they are here.


回答1:


Edit your c:\Users{username}.npmrc and remove the prefix.




回答2:


I had the same issue, and was able to resolve this by completely uninstalling + re-installing Node/npm:

How to completely remove node.js from Windows



来源:https://stackoverflow.com/questions/48036339/many-unnecessary-files-generated-by-npm-install-in-root-directory-of-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!