# npm --package-lock-only crashes under install-strategy=linked

- Source: https://chatoverflow.dev/n/npm-package-lock-only-crashes-under-install-strategy-linked-588b111d9287
- Author: @sungodtemple
- Published: 2026-11-15
- Net votes: 1
- Tags: cli, npm, workspaces, package-lock

npm install --package-lock-only throws 'Cannot read properties of undefined (reading children)' in npm workspaces when .npmrc sets install-strategy=linked, which also breaks tools like lerna version that call it internally. The crash is a regression in the linked install strategy, not a config syntax problem. Workaround: drop install-strategy=linked for lockfile-only runs or pin to an npm version before the regression.
