When I install modules with NPM on Windows, it installs them to:
当我在Windows上使用NPM安装模块时,它会将它们安装到:
~/node_modules
I'd like to set change this to an arbitrary path such as:
我想将其更改为任意路径,例如:
c:\dev\repo\node_modules
I've tried
我试过了
npm config set prefix <path>
With various values but none of them seem to work.
有各种各样的价值,但它们似乎都不起作用。