vuejs-入门命令大全
作者:互联网
npm设置
C:\Users<你的用户>.npmrc
npm config set prefix “D:\ProgramFiles\nodejs\node_global”
npm config set cache “D:\ProgramFiles\nodejs\node_cache”
npm config set registry “https://registry.npm.taobao.org”
npm config get prefix
npm config get cache
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install -g yarn
yarn相关
yarn config set registry https://registry.npm.taobao.org -g
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
yarn config set global-folder “D:\ProgramFiles\nodejs\Yarn\global”
yarn config set prefix “D:\ProgramFiles\nodejs\Yarn\global”
yarn config set cache-folder “D:\ProgramFiles\nodejs\Yarn\cache”
vue相关
npm install vue@next
npm install -D @vue/compiler-sfc
yarn global add @vue/cli
vue upgrade --next
yarn create vite --template vue
cd
yarn install
yarn run serve
yarn run build
标签:npm,set,入门,vuejs,yarn,vue,registry,config,大全 来源: https://blog.csdn.net/qq_16038125/article/details/121526640