問題描述
node.js安裝依賴包出現(xiàn) yarn install info No lockfile found 錯誤,具體內(nèi)容如下
? ?vue-next git:(fe853a5a) npm install yarn -g
changed 1 package in 679ms
? ?vue-next git:(fe853a5a) yarn install ? ? ??
yarn install v1.22.17
info No lockfile found.
$ node ./scripts/preinstall.js
This repository requires using pnpm as the package manager ?for scripts to work properly.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
解決辦法
用以下代碼:
yarn install --ignore-scripts
詳細(xì)命令參考以下文檔:https://classic.yarnpkg.com/en/docs/cli/install
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!