一、先看報(bào)錯(cuò)
執(zhí)行 pnpm install 裝包報(bào)錯(cuò)
報(bào)錯(cuò)信息
?ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF? This modules directory was created using a different public-hoist-pattern value. Run "pnpm install" to recreate the modules directory.
二、解決方法
-
在項(xiàng)目根目錄中,刪除 node_modules 目錄
-
打開終端,并確保你在項(xiàng)目根目錄下文章來源:http://www.zghlxwxcb.cn/news/detail-796089.html
-
重新安裝依賴
文章來源地址http://www.zghlxwxcb.cn/news/detail-796089.html
到了這里,關(guān)于pnpm裝包報(bào)錯(cuò)Run “pnpm install“ to recreate the modules directory.的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!