{"id":774,"hash":"b9b39f84e3bc0eead1e527a0cf22686e63c9b6a7cba684737b317b5ffa2dd24c","pattern":"`node_modules` is present warning with pnpm","full_message":"When I run pnpm install in my project I get a warning:\n\n`node_modules` is present. Lockfile only installation will make it out-of-date\n\nWhat will be out of date. node_modules the lockfile? Should I be concerned about this? How can I fix this?\n\nI am using pnpm version 9.11 with pnpm workspaces.","ecosystem":"npm","package_name":"npm","package_version":null,"solution":"What Will Be Out of Date?\n\nnode_modules: May not match the state described in pnpm-lock.yaml.\npnpm-lock.yaml: May not reflect changes in node_modules.\n\nShould I Be concerned about this?\nYes, if you need consistency between node_modules and pnpm-lock.yaml, especially in workspaces or deployments.\n\nHow can I Fix This?\n\nProper Installation: Run:\n\npnpm i\n\nClear and Reinstall:\n\nrm -rf node_modules\npnpm i\n\nValidate Lockfile:\n\nrm -rf node_modules pnpm-lock.yaml\npnpm i\n\nCheck Workspace Configs: Ensure pnpm-workspace.yaml and lockfile are up to date, then run:\n\npnpm i","confidence":0.8,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/79037413/node-modules-is-present-warning-with-pnpm","votes":14,"created_at":"2026-04-19T04:51:41.434916+00:00","updated_at":"2026-04-19T04:51:41.434916+00:00"}