Create-nuxt-app: Add PNPM to package manager choice

Created on 27 Oct 2019  路  4Comments  路  Source: nuxt/create-nuxt-app

Hi everyone !

Can you please add https://pnpm.js.org/en/ to the package manager choice ?
NPM and Yarn are great but PNPM too 馃槃

PS : Use pnpx create-nuxt-app <myapp> already work 馃憤

But packages are installed with NPM. We need to delete :

  • package-lock.json
  • /node_modules

And do pnpm i.

EDIT (10 november) :

When the packages are installed with PNPM, it is impossible to launch the application because the deepdependencies are not correctly installed, it is necessary to use the flag --shamefully-hoist but suddenly the node_modules folder is identical to the one of NPM or Yarn and so we lose the usefulness of PNPM 馃槥

Most helpful comment

I agree. We plan to fix that hoist flag problem because we decided to stick with vue/webpack deps. But please wait until we change the core changes. So add option when we really support PNPM (again)

All 4 comments

I think current Nuxt.js doesn't support full functionalities of pnpm.
@pi0 Any idea about pnpm support ?

I think current Nuxt.js doesn't support full functionalities of pnpm.
@pi0 Any idea about pnpm support ?

Yeah Nuxt doesn't support PNPM actually because it's necessary to use --shamefully-hoist flag so that all dependencies of Nuxt are installed correctly

I agree. We plan to fix that hoist flag problem because we decided to stick with vue/webpack deps. But please wait until we change the core changes. So add option when we really support PNPM (again)

Hi, any news about this?

vue-cli currently supports pnpm by using an .npmrc file in the project root with the following content

.npmrc shamefully-hoist=true

And it works fine, could this be a possible solution to use pnpm with Nuxt as well?

Was this page helpful?
0 / 5 - 0 ratings