npm config get cache npm config get prefix # 列举配置信息 npm config list
改完之后记得将新的全局文件夹配置到 path 环境变量中
npm config set prefix "......" npm config set cache "......"