Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_PNPM_LOCKFILE_CONFIG_MISMATCH error during project init #629

Open
5 tasks done
kagorski opened this issue Jan 10, 2025 · 2 comments
Open
5 tasks done

ERR_PNPM_LOCKFILE_CONFIG_MISMATCH error during project init #629

kagorski opened this issue Jan 10, 2025 · 2 comments

Comments

@kagorski
Copy link
Contributor

kagorski commented Jan 10, 2025

Describe the bug

I'm trying to initialise project saas-boilerplate by running npm init saas-boilerplate myapp which gives me an error:

ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "patchedDependencies" configuration doesn't match the value found in the lockfile

A similar issue occurs once I run init commands via pnpm and yarn

Steps to reproduce

  1. mkdir myapp
  2. npm init saas-boilerplate myapp

System Info

System:
    OS: macOS 15.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 66.61 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    pnpm: 10.0.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.265
    Safari: 18.2

Logs

Click to expand!
➜  saas-bp mkdir myapp
➜  saas-bp npm init saas-boilerplate myapp
> npx
> create-saas-boilerplate myapp
------ Notice ------
This CLI collects various anonymous events, warnings, and errors to improve the CLI tool and enhance your user experience.
Read more: https://docs.demo.saas.apptoku.com/working-with-sb/dev-tools/telemetry
If you want to opt out of telemetry, you can set the environment variable SB_TELEMETRY_DISABLED to 1 in your shell.
For example:
   export SB_TELEMETRY_DISABLED=1
Performing system check:
⠋ Checking if docker is installed...
⠋ Checking if pnpm is installed...
(node:68335) [DEP0040] DeprecationWarning: The `punycode` module is deprecated.
✔ Checking if docker is installed... it is!
✔ Checking if pnpm is installed... it is!
Project will be initialized in directory: /Users/XXX/Projects/saas-bp/myapp
Fetching latest release... done
Latest release: 4.1.1
Downloading project... done
Setup environment variables:
This step will set up all environment variables.
For more details visit: https://docs.demo.saas.apptoku.com/api-reference/env.
Pass PROJECT_NAME [saas]:
Configure you social OAuth clients (optional):
Pass SOCIAL_AUTH_GOOGLE_OAUTH2_KEY [<CHANGE_ME>]:
Pass SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET [<CHANGE_ME>]:
Pass SOCIAL_AUTH_FACEBOOK_KEY [<CHANGE_ME>]:
Pass SOCIAL_AUTH_FACEBOOK_SECRET [<CHANGE_ME>]:
Configure Stripe access (optional):
Pass STRIPE_LIVE_SECRET_KEY [<CHANGE_ME>]:
Pass STRIPE_TEST_SECRET_KEY [<CHANGE_ME>]:
Pass DJSTRIPE_WEBHOOK_SECRET [<CHANGE_ME>]:
Pass STRIPE_PUBLISHABLE_KEY [<CHANGE_ME>]:
Configure Contentful access (optional):
Pass CONTENTFUL_SPACE_ID [<CHANGE_ME>]:
Pass CONTENTFUL_ACCESS_TOKEN [<CHANGE_ME>]:
Pass CONTENTFUL_ENVIRONMENT [<CHANGE_ME>]:
Installing dependencies...
Scope: all 22 workspace projects
 ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "patchedDependencies" configuration doesn't match the value found in the lockfile
Installing dependencies... !
    Error: Command failed: pnpm i --frozen-lockfile
npm error code 1
npm error path /Users/XXX/Projects/saas-bp
npm error command failed
npm error command sh -c create-saas-boilerplate myapp
npm error A complete log of this run can be found in: /Users/XXX/.npm/_logs/2025-01-10T09_48_44_719Z-debug-0.lo

Validations

@filiphagan
Copy link

I'm having the same issue using pnpm on WSL2

System info

System:
    OS: Win 10 + WSL2
    Shell: bash
  Binaries:
    Node: 23.6.1
    pnpm: 10.0.0

Logs

> pnpm create saas-boilerplate boilerplate
Downloading [email protected]: 11.79 MB/11.79 MB, done
 WARN  16 deprecated subdependencies found: @npmcli/[email protected], @npmcli/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
.../19493c37d96-1067                     | +627 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.../19493c37d96-1067                     | Progress: resolved 627, reused 0, downloaded 627, added 627, done

------ Notice ------
This CLI collects various anonymous events, warnings, and errors to improve the CLI tool and enhance your user experience.
Read more: https://docs.demo.saas.apptoku.com/working-with-sb/dev-tools/telemetry
If you want to opt out of telemetry, you can set the environment variable SB_TELEMETRY_DISABLED to 1 in your shell.
For example:
   export SB_TELEMETRY_DISABLED=1

Performing system check:
⠋ Checking if docker is installed...
⠋ Checking if pnpm is installed...
✔ Checking if docker is installed... it is!
✔ Checking if pnpm is installed... it is!
Project will be initialized in directory: /mnt/c/work/saas/boilerplate
Fetching latest release... done
Latest release: 4.1.1
Downloading project... done
Setup environment variables:
This step will set up all environment variables.
For more details visit: https://docs.demo.saas.apptoku.com/api-reference/env.

Pass PROJECT_NAME [saas]:
Configure you social OAuth clients (optional):
Pass SOCIAL_AUTH_GOOGLE_OAUTH2_KEY [<CHANGE_ME>]:
Pass SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET [<CHANGE_ME>]: 
Pass SOCIAL_AUTH_FACEBOOK_KEY [<CHANGE_ME>]: 
Pass SOCIAL_AUTH_FACEBOOK_SECRET [<CHANGE_ME>]: 
Configure Stripe access (optional):
Pass STRIPE_LIVE_SECRET_KEY [<CHANGE_ME>]:
Pass STRIPE_TEST_SECRET_KEY [<CHANGE_ME>]: 
Pass DJSTRIPE_WEBHOOK_SECRET [<CHANGE_ME>]: 
Pass STRIPE_PUBLISHABLE_KEY [<CHANGE_ME>]: 
Configure Contentful access (optional):
Pass CONTENTFUL_SPACE_ID [<CHANGE_ME>]:
Pass CONTENTFUL_ACCESS_TOKEN [<CHANGE_ME>]: 
Pass CONTENTFUL_ENVIRONMENT [<CHANGE_ME>]: 
Installing dependencies...
Scope: all 22 workspace projects
 ERR_PNPM_LOCKFILE_CONFIG_MISMATCH  Cannot proceed with the frozen installation. The current "patchedDependencies" configuration doesn't match the value found in the lockfile

Installing dependencies... !
    Error: Command failed: pnpm i --frozen-lockfile

@filiphagan
Copy link

All you have to do is downgrade pnpm to <10. The pnpm-lock.yaml is version 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants