查看版本:
npm -v

获取全局目录:
npm config get prefix

设置全局目录
npm config set prefix "D:\Program Files\nodejs\node_global"

获取全局目录:
npm config get cache

设置全局缓存目录
npm config set cache "D:\Program Files\nodejs\node_cache"

相关文章:

  • 2021-06-04
  • 2021-04-09
猜你喜欢
  • 2021-11-29
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案