npm笔记

发布时间 2023-10-10 19:50:45作者: wujf

npm config set cache "D:\nodejs\node_cache" //设置缓存文件夹
npm config set prefix "D:\nodejs\node_global" //设置全局模块存放路径

npm install -g cnpm --registry=https://registry.npm.taobao.org

npm install yarn -g

yarn config set global-folder "路径"
yarn config set cache-folder "路径"

npm install webpack -g
npm install vue -g
npm install @vue/cli –g

vue init webpack 项目名
在项目目录下
npm install axios -s
npm run dev