Pnpm: step.dependencies is not iterable

Created on 7 Feb 2020  Â·  4Comments  Â·  Source: pnpm/pnpm

pnpm version: 4.9.3

Code to reproduce the issue: pnpm install

Expected behavior: dependencies are installed

Actual behavior:

 ERROR  step.dependencies is not iterable
at getDependencies            ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/node_modules/@pnpm/hoist/lib/index.js:44      for (const { pkgSnapshot…
at hoistByLockfile [as defa…  ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/node_modules/@pnpm/hoist/lib/index.js:16      const deps = await getDe…
at default                    ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/node_modules/@pnpm/headless/lib/index.js:132  newHoistedAliases = awai…
at async _install             ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/node_modules/supi/lib/install/index.js:110    await headless_1.default…
at withLock [as default]      ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/node_modules/supi/lib/lock.js:17              const result = await fn(…
at mutateModules              ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/node_modules/supi/lib/install/index.js:72     result = await lock_1.de…
at recursive [as default]     ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/lib/recursive.js:174                          const mutatedPkgs = awai…
at handler [as default]       ../../../../../.nvm/versions/node/v13.6.0/lib/node_modules/pnpm/lib/node_modules/@pnpm/plugin-commands-installation/lib/installDeps.js:48                         await recursive_1.defaul

Additional information:

  • node -v prints: v13.6.0
  • Windows, OS X, or Linux?: OS X

pnpm-debug.log

bug

All 4 comments

I cannot reproduce it. Could you create a repository that reproduces it?

hi @zkochan, well, no. this bug just evaporates and I cannot reproduce it. weird.

Unfortunate. I looked into the code and didn't find any scenario where this would be possible.

I think I have reproduced this issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mtford90 picture mtford90  Â·  4Comments

radarsu picture radarsu  Â·  3Comments

andreineculau picture andreineculau  Â·  3Comments

fbutter picture fbutter  Â·  4Comments

aleclarson picture aleclarson  Â·  4Comments