问题
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