使用淘寶映象源加速 NPM(alacleate NPM) & vue-cli

哈了个皮發表於2024-05-01

狂神筆記連結

我自己用的

 npm config set registry http://registry.npmmirror.com

最新的:

 npm config set registry https://registry.npmmirror.com

之前的:

 npm config set registry https://registry.npm.taobao.org

使用阿里雲 映象源加速 NPM

 npm config set registry https://registry.npmmirror.com

使用騰訊雲映象源加速 NPM

npm config set registry http://mirrors.cloud.tencent.com/npm/

使用華為雲 映象源加速 NPM

npm config set registry https://mirrors.huaweicloud.com/repository/npm/

返回npm 官方原始映象

npm config set registry https://registry.npmjs.org/

使用那個映象,只需要 npm config set registry + 對應的映象網址就好了

npm config set registry 

檢視當前的映象源:npm config get registry

npm config get registry

Runtime + Compiler: recommended for most users
Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - re
nder functions are required elsewhere

npm run dev

相關文章