npm set the module installation path and cache path

In the command line:

# 模组安装路径
npm config set prefix <PATH-TO-PREFIX>
# 缓存路径
npm config set cache <PATH-TO-CACHE>

Note that the folder must be created in advance:

mkdir <FOLDER-NAME>
cd <FOLDER-NAME>

Guess you like

Origin blog.csdn.net/qq_35714301/article/details/114335794