一、安裝教程
1、npm全局安裝pnpm
執(zhí)行下面命令安裝pnpm
npm install -g pnpm
提示npm版本過低
執(zhí)行下面命令升級npm
npm install -g npm@9.8.0
重新執(zhí)行下面命令安裝pnpm
npm install -g pnpm
執(zhí)行下面命令查詢pnpm是否安裝成功
pnpm -v
二、查看鏡像地址
執(zhí)行下面命令
pnpm config get registry
訪問https://registry.npm.taobao.org 會跳轉(zhuǎn)到 https://registry.npmmirror.com/ 鏡像(中國鏡像地址)
三、其他命令
1、設(shè)置鏡像地址
pnpm set registry https://registry.npmmirror.com/
2、設(shè)置包存放地址
pnpm config set store-dir C:/pnpmStore文章來源:http://www.zghlxwxcb.cn/news/detail-650032.html
3、查詢包存放地址
pnpm store path文章來源地址http://www.zghlxwxcb.cn/news/detail-650032.html
到了這里,關(guān)于前端篇(第二節(jié))-使用npm安裝pnpm的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!