#npm #svelte #netlify-cms
Вопрос:
Я установил sveltekit и развернул шаблон sveltekit для очистки.
Я хочу связать его с netify-cms, а затем заняться созданием веб-сайта, но это вызвало эту ошибку при попытке загрузить пакет npm.
C:Userspjsupcodeponders-showcase>npm i netlify-cms-app
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! peer react@"^16.8.4 || ^17.0.0" from netlify-cms-app@2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app@"*" from the root project
npm ERR! peer react@"17.0.2" from react-dom@17.0.2
npm ERR! node_modules/react-dom
npm ERR! peer react-dom@"^16.8.4 || ^17.0.0" from netlify-cms-app@2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app@"*" from the root project
npm ERR! peer react-dom@"^16.8.4 || ^17.0.0" from netlify-cms-core@2.48.0
npm ERR! node_modules/netlify-cms-core
npm ERR! netlify-cms-core@"^2.48.0" from netlify-cms-app@2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app@"*" from the root project
npm ERR! 7 more (netlify-cms-widget-date, ...)
npm ERR! 39 more (@emotion/core, @emotion/styled, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0-0" from react-split-pane@0.1.92
npm ERR! node_modules/netlify-cms-core/node_modules/react-split-pane
npm ERR! react-split-pane@"^0.1.85" from netlify-cms-core@2.48.0
npm ERR! node_modules/netlify-cms-core
npm ERR! netlify-cms-core@"^2.48.0" from netlify-cms-app@2.15.40
npm ERR! node_modules/netlify-cms-app
npm ERR! netlify-cms-app@"*" 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.
npm ERR!
npm ERR! See C:UserspjsupAppDataLocalnpm-cacheeresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UserspjsupAppDataLocalnpm-cache_logs2021-09-06T12_26_54_989Z-debug.log
Это потому, что netify-cms еще не может работать со sveltekit? Он утверждает, что работал с Сапером своего предшественника.
https://www.netlifycms.org/docs/add-to-your-site/