From: Alois Sečkár Date: Fri, 6 Jan 2023 13:58:46 +0000 (+0100) Subject: docs: installation workaround npm (#1901) X-Git-Tag: pinia@2.0.29~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f42d181927755b9a1f4c694e9c21fe9889ae6ea9;p=thirdparty%2Fvuejs%2Fpinia.git docs: installation workaround npm (#1901) Co-authored-by: Eduardo San Martin Morote Close https://github.com/vuejs/pinia/issues/853 --- diff --git a/packages/docs/ssr/nuxt.md b/packages/docs/ssr/nuxt.md index 069e8731..8d7a6cfb 100644 --- a/packages/docs/ssr/nuxt.md +++ b/packages/docs/ssr/nuxt.md @@ -10,6 +10,16 @@ yarn add pinia @pinia/nuxt npm install pinia @pinia/nuxt ``` +:::tip +If you're using npm, you might encounter an _ERESOLVE unable to resolve dependency tree_ error. In that case, add the following to your `package.json`: + +```js +"overrides": { + "vue": "latest" +} +``` +::: + We supply a _module_ to handle everything for you, you only need to add it to `modules` in your `nuxt.config.js` file: ```js