我想在我的專案中使用 master 的當前 Vuetify 3 版本。
我將 vuetify 從 master ( git clone -b next https://github.com/vuetifyjs/vuetify.git)克隆到/home/pavel/vuetify檔案夾。之后我安裝了 vuetify 專案 ( yarn install)。
在我的專案中,我設定
"dependencies": {
"vuetify": "file:/home/pavel/vuetify",
....
},
"devDependencies": {,
...
"vuetify-loader": "^2.0.0-alpha.0"
},
但是,當我嘗試構建我的專案時,我得到:
$npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: vuetify@undefined
npm ERR! node_modules/vuetify
npm ERR! vuetify@"file:/home/pavel/vuetify" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vuetify@"^3.0.0-alpha.11" from [email protected]
npm ERR! node_modules/vuetify-loader
npm ERR! dev vuetify-loader@"^2.0.0-alpha.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
任何人都可以幫助構建和使用 master 的當前 Vuetify 3 版本。
uj5u.com熱心網友回復:
您也必須構建它 ( yarn build vuetify),并且 vuetify 包在 下packages/vuetify,而不是 repo 的根目錄下。如果您只想嘗試最新的更改,它們會自動發布到 npm:https ://vuetifyjs.com/en/getting-started/installation/#nightly-builds
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/402812.html
標籤:
